Sep 9, 2004 #1 mdwu Technical User Jul 17, 2003 98 US What's the sql query to find the column names of table. thanks.
Sep 10, 2004 #2 dbomrrsm Programmer Feb 20, 2004 1,709 GB Code: select * from information_schema.columns where TABLE_CATALOG = 'YOUR_DATABASE' [blue]DBomrrsm[/blue] Upvote 0 Downvote
Code: select * from information_schema.columns where TABLE_CATALOG = 'YOUR_DATABASE' [blue]DBomrrsm[/blue]
Sep 10, 2004 #3 dbomrrsm Programmer Feb 20, 2004 1,709 GB Sorry for a specific table: Code: SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_CATALOG = 'YOUR_DATABASE' AND TABLE_NAME = 'YOUR_TABLE_NAME' [blue]DBomrrsm[/blue] Upvote 0 Downvote
Sorry for a specific table: Code: SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_CATALOG = 'YOUR_DATABASE' AND TABLE_NAME = 'YOUR_TABLE_NAME' [blue]DBomrrsm[/blue]
Sep 10, 2004 Thread starter #4 mdwu Technical User Jul 17, 2003 98 US thanks..awesome. Upvote 0 Downvote
Sep 10, 2004 #5 dbomrrsm Programmer Feb 20, 2004 1,709 GB glad to be of help [blue]DBomrrsm[/blue] Upvote 0 Downvote