1. Get all user names: SELECT name from Sysusers where status= ' 2 ' and islogin= ' 1 'islogin= ' 1 ' means accountIslogin= ' 0 ' indicates a roleStatus= ' 2 ' represents a user accountStatus= ' 0 ' indicates a system account2. Get all database names:SELECT Name from Master. sysdatabases ORDER by Name3. Get all table n
Get all column names in a temporary table
select name from tempdb.dbo.syscolumns where id=object_id( '#TempTB')
To determine whether a specified column name exists in a temporary table
If Col_length (' tempdb.dbo. #TempTB ', ' columnName ')
is not null print ' exists '
else
print ' does not exist '
The above is the entire content of this article, I hope the content of this article for everyon
Query all table names: Select T.table_name from User_tables t; Query all field names: Select T.column_name from user_col_comments t; Query all field names for the specified table: Select T.column_name from user_col_comments t
Query all table names:Select T.table_name from User_tables t;Query all field names:Select T.column_name from User_col_comments t;Query all field names for the specified table:Select T.column_name from user_col_comments t where T.table_name = ' biz_dict_xb ';Query all field
--oracle See all of the user's table names, table comments, field names, field comments, empty, field type SELECT DISTINCT table_column.*, table_nallable. Data_type, table_nallable. NULLABLE from (SELECT DISTINCT Utc.table_name table_name, utc.comments table_comments, Ucc.column_name column_name, ucc.comments column_comments from User_tab _
--oracle See all the user's table names, table gaze, field name, field gaze, is empty, field type SELECT DISTINCT table_column.*, table_nallable. Data_type, table_nallable. NULLABLE from (SELECT DISTINCT Utc.table_name table_name, utc.comments table_comments, Ucc.column_name column_name, ucc.comments column_comments from User_tab _comments UTC, User_col_comments UCC where utc.table_na
Get table names and comments:Select Relname as Tabname,cast (obj_description (Relfilenode, ' pg_class ') as varchar) as comment from Pg_class Cwhere relkind = ' R ' and Relname not-like ' pg_% ' and relname not-like ' sql_% ' ORDER by RelnameFilter out the Sub-table:Conditional and relchecks=0 can beGets the field name, type, comment, whether it is empty:SELECT col_description (A.attrelid,a.attnum) as Comment,format_type (A.atttypid,a.atttypmod) as ty
In the work, you need to read the data in the specified XML database and the field names required for the table. Therefore, we can improve the implementation in the existing example:
XML database xmldabase. xml:
Obtain the data of a specified table:
from xml.etree import ElementTreedef get_table_records( xmlfile = None,text = None,table_name=None): root=None if xmlfile: root = ElementTree.parse(xmlfile) elif text: root = Elem
IOS Code is applicable to the layout of all iPhone phones.IOS Code is applicable to all iPhone mobile phone la implementations
This article mainly describes a set of code adapted to all iPhone layout solutions. The main point is
1. Get all database names: SelectNameFROMMaster .. SysDatabases2. get all table names: tables: all user tables; XTypeS: All system tables; 3. Get all field
1. Before http2.4.1: the first method is to directly access the httpd. conf file and append the configuration to the end of the file.
# Directly deny all illegal domain names
# Allowed domain names
Restart apache service: Service httpd restart 2. Jump to the specified directory or file to open the httpd. conf file and append the configuration to the end of
1. Get all database names: SELECT name fromMaster.. sysdatabases ORDER by Name2. Get all table names: SELECT name fromDatabaseName. SysObjects Where xtype='U'ORDER by Namextype='U': represents all user tables; XType='S': represents all
Phpmysql obtains the names of all tables in the specified database. Php Tutorial mysql tutorial obtain all table names of a specified database tutorial if you want to display a table name of a specified database in mysql, the method is very simple. mysql provides a showtables command, it returns the php Tutorial mysql
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 a list of field names sepa
Application: Refer to all the field name codes of the data table on the web, use cursors to generate all field names of the specified single table followed by commas for the list of field names separated by the select comma from the string and other occasions.The query result output is as follows:The field list string
In MySQL to display all the table names in the specified database we have a command show tables can be implemented, let me take a look at how show tables get all the table names in the MySQL database.
Use Direct cmd command mode
The code is as follows
Copy Code
show databases;Show tables fro
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 capitalizedPerform the test, the table all the primary keys are detected, the primary key column name is in the fourth columnGet al
Python reads all file names under the specified directory and its subdirectories
Target
As you accumulate more and more files on your disk, searching for a file is too slow and memory-using Windows. Therefore, I want to find a file name that can get all the files in the specified directory, as a kind of document management method of library index directory.
Thi
Obtaining the list of file names of all files in the folder is still very useful. for example, I recently used NDK to write Android. mk files need to put all the files under multiple folders *. add the file name of c... in Windows, use cmd to locate the folder to be operated and enter... obtaining the list of file names
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.