I’m escaping two semi colons in the code below using a backslash. I’m executing this code in SQLite Database Brower 2.0 for Mac. It keeps freezing up. I’m guessing that is because of some syntax issue?
INSERT INTO question (QuestionId, QuestionText, AreaId, AnswerText)
VALUES(6019, 'Math Functions', 6, "
Added: 9/1/2011
The following is a listing of math functions available:
Power of:
double pow ( double, double )
Example:
double myvar = pow(2,4)\;
NSLog(@"%.f", myvar)\; //value is 16");
The semicolons aren’t your problem, the double quotes in the
NSLogcall are:Double them and SQLite will be happy:
Or you can use single quotes around the whole thing:
Single quotes are standard for SQL strings but SQLite will let you use either single or double quotes for strings.