"Kim G. Pedersen" <[EMAIL PROTECTED]> wrote: > > I once red that using "truncate table xx" instead of "delete from xx" > should reset autoincrement , but it seem not to happend. > > but when I try to insert data with "insert" or "load data in " > it remember the old autoincrement value. > > from manual : > "Truncate operations drop and re-create the table, which is much faster > than deleting rows one by one. " > > seems not , when I drop table and the create table again it works perfect. >
What table type do you use? TRUNCATE TABLE reset auto_increment value for MyISAM table, but not for InnoDB. -- For technical support contracts, goto https://order.mysql.com/?ref=ensita This email is sponsored by Ensita.net http://www.ensita.net/ __ ___ ___ ____ __ / |/ /_ __/ __/ __ \/ / Egor Egorov / /|_/ / // /\ \/ /_/ / /__ [EMAIL PROTECTED] /_/ /_/\_, /___/\___\_\___/ MySQL AB / Ensita.net <___/ www.mysql.com -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]