Did you see the -w, --where option? It might be what you're looking
for...
"Dump only selected records."
--http://www.mysql.com/doc/m/y/mysqldump.html
If you have a more complicated query and you are using Windows, you can
use urSQL + MyODBC to accomplish this as urSQL
(http://www.urbanresearch.com/ursql) allows you to export the results of
any query (to a variety of formats).
On Tue, 7 Aug 2001, Kevin wrote:
>
> Thanks for pointing out mysqldump.
>
> I now need to be able to copy a limited number of data records. I see that
> mysqldump allows data copy by providing the cooresponding INSERT statements.
> However, I don't always want all of the records. Some of my tables have
> thousands of records and I may only want the first 200 or so. I did not see
> an option on mysqldump that would limit the number of records. Any ideas
> without writing a program?
>
> Kevin
>
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php