I'm using this query
Insert Into Menus(null, 'Item One', 'Desc') // First Parent Item
Insert Into Menus(null, 'Item Two', 'Desc') // Second Parent Item
Insert Into Menus(null, 'Item Three', 'Desc') // Third Parent Item
Insert Into Menus(1, 'Item Sub One', 'Desc') // Child of First Parent Item
Insert Into Menus(2, 'Item Sub Two', 'Desc') // Child of Second Parent Item
Insert Into Menus(3, 'Item Sub Three', 'Desc') // Child of Third Parent Item
and I get this error
Msg 102, Level 15, State 1, Line 1
Incorrect syntax near '/'
在第一组括号内将3列名称固定为其正确的名称:
Insert Into Menus (col1name, col2,col3) values (null, 'Item One', 'Desc');
Another problem :
// this is NOT a correct SQL comment
/* this is a correct SQL comment */
-- this also is a correct SQL comment
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.