Re: [SQL] "'" in SQL INSERT statement

2001-01-26 Thread Albert REINER
Saluton! On Thu, Jan 25, 2001 at 11:12:34AM +0100, Markus Wagner wrote: ... > Some of the data are strings containing the apostrophe "'" which I use > as string delimiter. > > How can I put these into my database using the INSERT statement? I always use this sub: # # This sub adapted f

Re: [SQL] "'" in SQL INSERT statement

2001-01-25 Thread Jie Liang
Hi, Using a backslash to escape it. insert into table(field) values('what\'s that'); Jie LIANG Internet Products Inc. 10350 Science Center Drive Suite 100, San Diego, CA 92121 Office:(858)320-4873 [EMAIL PROTECTED] www.ipinc.com On Thu, 25 Jan 2001, Markus Wagner wrote: > Hi, > > I have s

Re: [SQL] "'" in SQL INSERT statement

2001-01-25 Thread Dan Lyke
Alessio Bragadini writes: > Markus Wagner wrote: > > I have some data that I wish to transfer into a database using perl/DBI. > > If you use Perl DBI you should issue statements like > $dbh->do ('INSERT INTO table (field1, field2) VALUES (?,?)', > undef, $value1, $value2); $dbh->quote() al

Re: [SQL] "'" in SQL INSERT statement

2001-01-25 Thread Brett W. McCoy
On Thu, 25 Jan 2001, Markus Wagner wrote: > I have some data that I wish to transfer into a database using perl/DBI. > Some of the data are strings containing the apostrophe "'" which I use > as string delimiter. > > How can I put these into my database using the INSERT statement? You will need

Re: [SQL] "'" in SQL INSERT statement

2001-01-25 Thread Alessio Bragadini
Markus Wagner wrote: > I have some data that I wish to transfer into a database using perl/DBI. If you use Perl DBI you should issue statements like $dbh->do ('INSERT INTO table (field1, field2) VALUES (?,?)', undef, $value1, $value2); This binding takes care of quoting and escapes all

Re: [SQL] "'" in SQL INSERT statement

2001-01-25 Thread Oliver Elphick
Markus Wagner wrote: >Hi, > >I have some data that I wish to transfer into a database using perl/DBI. >Some of the data are strings containing the apostrophe "'" which I use >as string delimiter. > >How can I put these into my database using the INSERT statement? Escape the apostrop

[SQL] "'" in SQL INSERT statement

2001-01-25 Thread Markus Wagner
Hi, I have some data that I wish to transfer into a database using perl/DBI. Some of the data are strings containing the apostrophe "'" which I use as string delimiter. How can I put these into my database using the INSERT statement? Thanks, Markus