june_c21 Posted December 15, 2007 Share Posted December 15, 2007 hi, i got this error... anyone please help. thanks SQL query: CREATE SEQUENCE language_id_seq MySQL said: #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SEQUENCE language_id_seq' at line 1 Link to comment https://forums.phpfreaks.com/topic/81776-solved-create-sequence/ Share on other sites More sharing options...
tippy_102 Posted December 15, 2007 Share Posted December 15, 2007 I don't think mySQL has SEQUENCE. You can set your field to AUTO_INCREMENT. Link to comment https://forums.phpfreaks.com/topic/81776-solved-create-sequence/#findComment-415425 Share on other sites More sharing options...
roopurt18 Posted December 15, 2007 Share Posted December 15, 2007 Google search: http://www.google.com/search?hl=en&client=firefox-a&rls=com.ubuntu%3Aen-US%3Aofficial&hs=KBO&q=mysql+create+sequence&btnG=Search According to the top couple hits, a sequence is an Oracle ID field that auto increments. In MySQL you would do something like this: CREATE TABLE IF NOT EXISTS `users` ( `id` INTEGER UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, # OTHER FIELDS ) Can you elaborate more on what you're trying to do? Link to comment https://forums.phpfreaks.com/topic/81776-solved-create-sequence/#findComment-415430 Share on other sites More sharing options...
june_c21 Posted December 15, 2007 Author Share Posted December 15, 2007 ok. i think i get what you mean. thanks again Link to comment https://forums.phpfreaks.com/topic/81776-solved-create-sequence/#findComment-415433 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.