Date: 06/11/02
- Next message: andy: "[PHP-DB] dumping only selected records into another table"
- Previous message: Andres Petralli: "[PHP-DB] Men enought for this? LDAP, SSL, Active Directory"
- Next in thread: andy: "[PHP-DB] dumping only selected records into another table"
- Maybe reply: andy: "[PHP-DB] dumping only selected records into another table"
- Maybe reply: andy: "[PHP-DB] dumping only selected records into another table"
- Maybe reply: andy: "[PHP-DB] dumping only selected records into another table"
- Reply: Jay Blanchard: "[PHP-DB] RE: [PHP] dumping only selected records into another table"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi there,
I have some data in one table which I have to move to another. No I thought
of a mysqldump with a where clause. The problem though is, that it also
tryes to insert the ID which is a autoinc. primary key and already in use by
another record. How can I produce a insert statement withouth the ID
included?
This is how I tryed it:
mysqldump -p "--where= country='us'" -t data beaches > beaches_us.sql
This is a line of output:
INSERT INTO beaches VALUES (2345,'Carrabelle Beach','US','9');
This is how I would like to have the output:
INSERT INTO beaches VALUES ('','Carrabelle Beach','US','9');
does anybody know how to do this?
Thanx for any help, Andy
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: andy: "[PHP-DB] dumping only selected records into another table"
- Previous message: Andres Petralli: "[PHP-DB] Men enought for this? LDAP, SSL, Active Directory"
- Next in thread: andy: "[PHP-DB] dumping only selected records into another table"
- Maybe reply: andy: "[PHP-DB] dumping only selected records into another table"
- Maybe reply: andy: "[PHP-DB] dumping only selected records into another table"
- Maybe reply: andy: "[PHP-DB] dumping only selected records into another table"
- Reply: Jay Blanchard: "[PHP-DB] RE: [PHP] dumping only selected records into another table"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

