2 replies to this topic
Posted 04 October 2006 - 05:21 PM
I'm trying to display data that no one field is required to be unique, so I want to make an automatic field that contains a number. but there's no auto incriment data type for sql. what do i do?
Posted 04 October 2006 - 05:32 PM
auto increment is not a datatype but rather an attribute. if you're wanting an auto incrementing column, just set it up in your create table statement like this:
CREATE TABLE myTable ( id int(11) auto_increment primary key -- continue your table on here --
You can't win, you can't lose, you can't break even... you can't even get out of the game.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users