Read about how to get table names in oracle, The latest news, videos, and discussion topics about how to get table names in oracle from alibabacloud.com
Data from the database in the work to export, but found that the exported Excel column names are field names (in English), to collect data on how to change the field name to Chinese names, and found that Oracle and SQL Server (SQLSERVER2008R2) is
Oracle|sql server|access Database Tutorial All table names, field names
SELECT * FROM user_tables WHERE table_name = ' username '
Use the following statement if you are logged on with this user:SELECT *From User_tables;If you are using another
Gets the primary key column name of the table SQLSELECT * FROM User_cons_columnswhere constraint_name = (select Constraint_name from user_constraintsWHERE table_name = ' bst_favorite ' and constraint_type = ' P ');Remember : table names are
Oracle uses a cursor to query a string that combines the names of all fields in a specified data table. oracle cursor
Application Scenario: refer to the Code for querying all field names of a data table on the Internet, and use a cursor to generate
SQL queries all database names, table names, stored procedures, and parameter lists
1. Get all user names: Select name from sysusers where status = '2' and islogin = '1' Islogin = '1' indicates the account
Operation steps: After opening Plsql developer, directly execute the following statement can come outUse cursors in--oracle to get strings for all field names in the specified data tableDeclareMytablename VARCHAR (255): = ' Staffdoc '; --Define the
Summary
Oracle Database is a well-known leading database system on Unix hardware platforms. Oracle users and administrators are therefore familiar with the Oracle architecture on the UNIX platform and the tools and skills above it, and get the
(external table creation is primarily concerned with the creation of directory access permissions issues, directory path format without spaces, and other irrelevant characters, that is, the current table must be accessible to users, and about the
Application Scenario: refer to the Code for querying all field names of a data table on the Internet, and use a cursor to generate a field name consisting of all field names of a specified table and commas (,) that are used to separate select commas
The table size has two meanings. One is the number of physical spaces allocated to a table, regardless of whether the space is used or not. You can query the number of bytes as follows:
Select segment_name, bytesFrom user_segmentsWhere
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.