forums › forums › SQLyog › Using SQLyog › Error no. 1064
- This topic is empty.
-
AuthorPosts
-
-
September 3, 2003 at 7:04 pm #8152markMember
Error reads “you have an error in your sql syntax near .'properties when id='00000000001' at line 1…”
Line 1 id record is also autoincrement and is also primary key. Error occurs when clicking on a text entry in the inserting/update data dialogue box.
Knowledge of sqlyog 2.51 is basic and sql more so, so please give step by step instructions.
Thanks
-
September 4, 2003 at 4:40 am #14852RiteshMember
SQLyog logs all its queries in the History window. Just paste the query out here.
If you are using SQLyog 2.51, we highly recommend you to upgrade to 3.52 as it has many new features and lot of big fixes.
-
September 4, 2003 at 3:22 pm #14853markMember
Error reads “you have an error in your sql syntax near .'properties when id='00000000001' at line 1…”
Line 1 id record is also autoincrement and is also primary key. Error occurs when clicking on a text entry in the inserting/update data dialogue box.
Knowledge of sqlyog 2.51 is basic and sql more so, so please give step by step instructions.
[16:14:11][10 ms] show databases
[16:14:11][0 ms] use `peace beanies`
[16:14:14][0 ms] show table status from `peace beanies`
[16:14:14][0 ms] show table status from `peace beanies`
[16:14:21][10 ms] show fields from `peace beanies`.`properties`
[16:14:21][0 ms] show keys from `peace beanies`.`properties`
[16:14:21][10 ms] select * from `peace beanies`.`properties` limit 0, 50
[16:14:23][0 ms] select info from peace beanies.properties where id='1'
thanks
-
September 4, 2003 at 3:27 pm #14854RiteshMember
Aha…found the error !!!!
Your database name contains spaces, therefore you need to put ticks(`) around it.
Code:select info from peace beanies.properties where id='1'will not work. Try
Code:select info from `peace beanies`.`properties` where id='1'HTH
-
September 4, 2003 at 6:15 pm #14855RiteshMember
BTW, SQLyog puts ticks around all object names in the SQL it generates.
-
-
AuthorPosts
- You must be logged in to reply to this topic.