Hi.
shell> mysqldump --help | grep 'quote\|Ver'
mysqldump Ver 8.14 Distrib 3.23.38, for pc-linux-gnu (i686)
-Q, --quote-names Quote table and column names with `
don't know why it isn't the default, but it seems you can force them
this way.
Regards,
Benjamin.
On Thu, May 16, 2002 at 11:54:45AM -0400, [EMAIL PROTECTED] wrote:
> I am working with a mySQL database in which some column names contain
> hyphens. These have to be enclosed in backquotes (`table-name1) within
> SQL statements.
>
> Problem: when generating its own SQL statements, mysqldump does not
> enclose these names in backquotes -- so when I try to restore a database
> from a dump file, I get SQL errors.
>
> Does anyone have a simple solution? If not, might future versions of
> mysqldump allow such fields to be backquoted?
[...]
--
[EMAIL PROTECTED]
---------------------------------------------------------------------
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