Greetings to all,
this is my query for creating table..
this is my table structure...
if i delete any row in this table..then the auto increment does not works properly...for e.g. if i delete 2nd row means.. then the serial number for books are 1,3,4,5..how to insert new row with serial number 2 ? how to resolve this? please help me..
_______________ ________
If not now,then never....
Regards,
Viji nellaiappan
this is my query for creating table..
Code:
CREATE TABLE `books` ( `serial_num` INT( 10 ) UNSIGNED NOT NULL AUTO_INCREMENT , `bk_name` VARCHAR( 200 ) NOT NULL , `qty` INT( 10 ) NOT NULL , `author` VARCHAR( 25 ) NOT NULL , PRIMARY KEY ( `serial_num` ) )
Code:
+------------+------------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +------------+------------------+------+-----+---------+----------------+ | serial_num | int(10) unsigned | | PRI | NULL | auto_increment | | bk_name | varchar(200) | | | | | | qty | int(10) | | | 0 | | | author | varchar(25) | | | | | +------------+------------------+------+-----+---------+----------------+
_______________ ________
If not now,then never....
Regards,
Viji nellaiappan
Comment