• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SQL syntax

 
Sean Casey
Ranch Hand
Posts: 625
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi!
here u are:suppose table name is sharad
statement.execute("insert into sharad values(\"my quotes\")");
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic