-----Original Message-----
From: hong chen 
Sent: Friday, April 05, 2002 5:32 PM
To: 'Alex Behrens'
Subject: RE: create tmp table of column list of a table for future use


No luck. Oracle and Sql Server have system tables to check. 

mysql> desc ATTRIBUTES;
+-------+--------------+------+-----+---------+-------+
| Field | Type         | Null | Key | Default | Extra |
+-------+--------------+------+-----+---------+-------+
| NAME  | varchar(255) | YES  |     | NULL    |       |
| VALUE | varchar(255) | YES  |     | NULL    |       |
+-------+--------------+------+-----+---------+-------+
2 rows in set (0.02 sec)

mysql> create table column_list ( ATTRIBUTES desc);
ERROR 1064: You have an error in your SQL syntax near 'desc)' at line 1
mysql> create table column_list (desc ATTRIBUTES);
ERROR 1064: You have an error in your SQL syntax near 'desc ATTRIBUTES)' at line 1
mysql> select Field from (desc ATTRIBUTES);
ERROR 1064: You have an error in your SQL syntax near 'desc ATTRIBUTES)' at line 1
mysql>
-----Original Message-----
From: Alex Behrens [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 5:24 PM
To: hong chen; [EMAIL PROTECTED]
Subject: Re: create tmp table of column list of a table for future use


I believe it has to be like this:

create table column_list (MYTABLE_NAME DESC);

Thanks!
--------------------------------------------
-Alex "Big Al" Behrens
E-mail: [EMAIL PROTECTED]
Urgent E-mail: [EMAIL PROTECTED] (Please be brief!)
Phone: 651-482-8779
Cell: 651-329-4187
Fax: 651-482-1391
ICQ: 3969599
Owner of the 3D-Unlimited Network:
http://www.3d-unlimited.com
Send News:
[EMAIL PROTECTED]
----- Original Message -----
 
To: <[EMAIL PROTECTED]>
Sent: Friday, April 05, 2002 4:13 PM
Subject: create tmp table of column list of a table for future use


mysql> create table column_list (desc MYTABLE_NAME);

ERROR 1064: You have an error in your SQL syntax near 'desc MYTABLE_NAME)'
at line 1


Anyone know how to make something like it?

---------------------------------------------------------------------
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




---------------------------------------------------------------------
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

Reply via email to