Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I can't insert a string with \ . Why?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
When i insert a string like '[0-9]\/[0-9]' my database, It inserts '[0-9]/[0-9]' and I don't understand why.
Thank you for answering.
 
The postgresql special charecter recognation is much similar to the c programming.
The '\' charecter is generally used to supress the meaning of special charecter.
If you want to insert '\' into the table just use '\\' instead of single slash.




Rahul
***** If you think you can't do it,You will never be able to do it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top