wood burning stoves 2.0*
The moose likes JDBC and the fly likes SQL syntax Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "SQL syntax" Watch "SQL syntax" New topic
Author

SQL syntax

Sean Casey
Ranch Hand

Joined: Dec 16, 2000
Posts: 625
Hi,
I just started using MySQL. I've been creating a table called quotes. one of the columns consists of quotes. From reading the MySql tutorial it says the syntax to use is '"here is my quote"'
but when I have an apostrophe, it interprets it as a one of the single quotes. Is there some sort of escape character for this in SQL?
Thanks,
Sean
sharad goswami
Ranch Hand

Joined: Jan 18, 2001
Posts: 51
hi!
here u are:suppose table name is sharad
statement.execute("insert into sharad values(\"my quotes\")");


Stop The World I Want To Get Off.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SQL syntax