If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > question about quotes ?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-24-05, 22:10
marconi8 marconi8 is offline
Registered User
 
Join Date: May 2003
Posts: 50
question about quotes ?

when i'insert a data with quotes into table i get the error
something like this
insert into table(string_field0) values(' 'test' ')

why inserting string with quotes is a little problem ?
this problem is in all databases ?

only one solution is to use replace function , like
Replace(Str," ' "," '")
Reply With Quote
  #2 (permalink)  
Old 02-25-05, 12:50
DMWCincy DMWCincy is offline
Registered User
 
Join Date: May 2004
Posts: 125
In MSSQL server, you have to use two quotes to insert into a table:

insert into table
(col1) values ('''Test''')

DMW
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On