Answer by Amrutesh Mishra for How can I get column names from a table in Oracle?
In Oracle SQL Developer,You can get the column names by opening the table view, by expanding the Connections option in the Left Hand Pane. Then Navigate to the table and Click on it.This will open the...
View ArticleAnswer by semaphore for How can I get column names from a table in Oracle?
If you use "Oracle SQL Developer" type the name of the table, place your cursor over that table name and press Shift+F4. It will open a popup window with all the column names for that table.
View ArticleHow can I get column names from a table in Oracle?
I need to query the database to get the column names, not to be confused with data in the table. For example, if I have a table named EVENT_LOG that contains eventID, eventType, eventDesc, and...
View ArticleAnswer by Sergey Golovchenko for How can I get column names from a table in...
You can do this:describe EVENT_LOGordesc EVENT_LOGNote: only applicable if you know the table name and specifically for Oracle.
View ArticleAnswer by Jon Ericson for How can I get column names from a table in Oracle?
That information is stored in the ALL_TAB_COLUMNS system table:SQL> select column_name from all_tab_columns where table_name = 'DUAL';DUMMYOr you could DESCRIBE the table if you are using...
View ArticleAnswer by baretta for How can I get column names from a table in Oracle?
You can query the USER_TAB_COLUMNS table for table column metadata.SELECT table_name, column_name, data_type, data_lengthFROM USER_TAB_COLUMNSWHERE table_name = 'MYTABLE'
View ArticleAnswer by Sasha for How can I get column names from a table in Oracle?
The other answers sufficiently answer the question, but I thought I would share some additional information. Others describe the "DESCRIBE table" syntax in order to get the table information. If you...
View ArticleAnswer by Eppz for How can I get column names from a table in Oracle?
In SQL Server...SELECT [name] AS [Column Name]FROM syscolumnsWHERE id = (SELECT id FROM sysobjects WHERE type = 'V' AND [Name] = 'Your table name')Type = 'V' for viewsType = 'U' for tables
View ArticleAnswer by Jom for How can I get column names from a table in Oracle?
For SQL Server 2008, we can use information_schema.columns for getting column informationSELECT *FROM information_schema.columnsWHERE table_name = 'Table_Name'ORDER BY ordinal_position
View ArticleAnswer by user1464296 for How can I get column names from a table in Oracle?
select column_name,* from information_schema.columns where table_name = 'YourTableName'order by ordinal_position
View ArticleAnswer by WEFX for How can I get column names from a table in Oracle?
You could also try this, but it might be more information than you need:sp_columns TABLE_NAME
View ArticleAnswer by ssamuel68 for How can I get column names from a table in Oracle?
For MySQL, use SELECT column_name FROM information_schema.columns WHERE table_schema = 'Schema' AND table_name = 'Table_Name'
View ArticleAnswer by jampez77 for How can I get column names from a table in Oracle?
For OracleSELECT column_name FROM user_tab_cols WHERE table_name=UPPER('tableName');
View ArticleAnswer by Rohit for How can I get column names from a table in Oracle?
describe YOUR_TABLE;In your case :describe EVENT_LOG;
View ArticleAnswer by bstricks for How can I get column names from a table in Oracle?
For SQL Server:SELECT [name] AS [Column Name]FROM syscolumnsWHERE id = object_id('TABLE_NAME')
View ArticleAnswer by shieldstroy for How can I get column names from a table in Oracle?
For SQLite I believe you can use something like the following: PRAGMA table_info(table-name);Explanation from sqlite.org:This pragma returns one row for each column in the named table. Columns in the...
View ArticleAnswer by user2558588 for How can I get column names from a table in Oracle?
The answer is here: http://php.net/manual/en/function.mysql-list-fields.phpI'd use the following code in your case:$result = mysql_query("SHOW COLUMNS FROM sometable");if (!$result) { echo 'Could not...
View ArticleAnswer by Val for How can I get column names from a table in Oracle?
I did it like thisSELECT TOP 0 *FROM PostsIt works even in http://data.stackexchange.com whose service tables I am not aware of!
View ArticleAnswer by Henry for How can I get column names from a table in Oracle?
SELECT A.COLUMN_NAME, A.* FROM all_tab_columns a WHERE table_name = 'Your Table Name'AND A.COLUMN_NAME = 'COLUMN NAME' AND a.owner = 'Schema'
View ArticleAnswer by Jaisankar for How can I get column names from a table in Oracle?
Even this is also one of the way we can use itselect * from product where 1 != 1
View Article