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 Quote Link to comment 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. Quote Link to comment 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? Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.