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
--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_name = Ucc.table_name and utc.table_name not li
the current database name dbname.
Then query the table name (add the second top N number from 0 to traverse the current database table name)
ID =-735 union select, (select top 1 name from sysobjects where xtype = u and name not in (select top 0 name from sysobjects where xtype = u, 6, 7, 8 from sysobjects
If you want to query the table names of other databases, you can also do this:
ID =-735 union select 1, 2, (select top 1 name from [dbname] .. syso
table does not exist.Description Alter Table Change the definition of an existing table. Add Column Format and Create Add a new column to the table with the same syntax as the table. / Field. Alter Column Form allows you / Set or delete the default value in the field ). Note that the default value is only valid for newly inserted rows. The rename clause can change a table or column without affecting any data in the relevant table. / Field name. Therefore, tables or columns
Mysql adds columns, modifies column names, column attributes, deletes columns, and mysql column names.Mysql modifies the table name, column name, column type, adds a table column, and deletes a table column.Alter table test rename test1; -- modify the table nameAlter table test add column name varchar (10); -- add a table columnAlter table test drop column name; -- delete a table columnAlter table test modify address char (10) -- modify the table colu
This article mainly introduces the use of PHP to convert uppercase names to underline division naming, this article explains some not accustomed to capitalization style naming methods such as Pascal name, hump naming method to convert the method, the need for friends can refer to the next
Sometimes it is necessary to convert the uppercase of a string into _+ lowercase, and when the variable is named, it will run into this problem, directly on the co
default value of NULL and the following values are desirable.
Value Description
Column to rename.
Database user-defined databases. This option is required to rename the database.
Index user-defined indexes.
OBJECT is the type of item that is tracked in sysobjects. For example, object can be used to rename constraints (CHECK, FOREIGN key, Primary/unique key), user tables, views, stored procedures, triggers, and rules.
Userdatatype the user-defined data type that is added by executing the sp_addt
Objectiveor do you write an automated packaging script today that takes you to get the last file name from the path name. Here is a record of the implementation process. Of course, in the end I will also give the official practice. (PS: Very awkward, only to realize that the bash shell has ready-made functions)
Get file nameSuppose the given path name is:
/tmp/csdn/zhengyi/test/zhengyi.txt
awk Solutionuse "/" to make the separator, and then print out the last part. The implemen
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 everyone's study or work can bring some help, but al
One day when writing classes suddenly thought of this problem, the following to explain how to solve the problem.Define a class:class test{public: void setnum (); void getnum (); Private : int num;}; void Test::setnum () { ten;} void Test::getnum () { printf ("%d\n", num);}Run:int Main () { test one; One.setnum (); One.getnum (); return 0 ;}Console output 100, which indicates that member functions can be directly modified by the member variables wit
This article describes how Python traverses directories and replaces file names and directory names in batches. Share to everyone for your reference, specific as follows:
#encoding =utf-8 #author: Walker #date: 2014-03-07 #summary: Depth traverse the specified directory and change the subdirectory and file name to lowercase #注意, this program is only for Windows, Windows file (folder) name is case-inse
Tags: select databaseUpdate Dept B, (select Group_concat (T.deptid), Group_concat (d.deptname separator '/') as Dname, T.id, t.deptname from (sel ECT Substring_index (Substring_index (A.deptid, ', ', b.help_topic_id+1), ', ', -1) as DeptID, a.ID, A.deptname from (select D.father as DeptID, D.id, D.deptname from Dept D) a join Mysql.help_topic B on b.help_topic_id GROUP by ID, deptname) C set b.location=c.dname where b.id = C.idEffectCopyright NOTICE: This article for Bo Master original article,
Software can be roughly divided into: Free Software and non-free software
Types of Free Software and non-free software.The following are some terms that are frequently mentioned when discussing free software. They explain which types overlap with others or are part of o
Software Engineering-software testing, Software Engineering Software Testing
After the system is complete, it is time to test the system. This must have been the first system of acceptance. We are confident that the system will be accepted by the master. Once it comes to the master, nothing will happen, in addition, so
In the past, I have read many articles about the top ten essential tools for developing common professional software such as. NET and. Net programmers. Today, I don't want to introduce these professional software. I want to introduce some auxiliary software that is often used during development to help us complete better development.
I recommend commonly used a
period, the CS is not, other industries worse. When the economy improves, CS lead. There's a representative billionaire who says, "Software will swallow the world." human beings just develop software, let the software command the machine, all other working bots will help you. You are the mouth cannon, these rich people use their own huge amount of money
It takes more than two years to develop programs!
Make a small summary!
Status Quo,
At present, many software companies in China are still working in small workshops!
After receiving a project, let's discuss how to do it. After the boss decides to make a decision, let's split our heads!
As a result, a project started, and everyone was busy in the early stage!
Everyone has their own jobs (some companies are unevenly allocated. If there are idle people,
Chapter 11 the power of variable namesPower of variable names11.1 considerations in choosing good namesConsiderations for selecting a variable nameThe most important naming considerationi most important naming considerationsTo change the name, you must describe exactly what the variable represents.
Problem orientation problem-orientedA well-remembered name usually reflects problems rather than solutions. A good name usually expresses "what" rather than "how )"
. For example, bitflag is more
Some machines in the company's LAN have a "Duplicate name on the network" problem when they start up. If you can ping other machines in the Intranet, it is normal to connect to the Internet and the computer name cannot be modified. This problem also occurs in my virtual machine.
Solution:
1. Open Network Connection Properties on this XP computer, and then open the properties of the NIC-> TCP/IP properties-> advanced.2. Remove unnecessary wins addresses under the WINS tab.3. Disable LmHosts look
three direct descendants managed by ISO, ITU, and jointly by ISO and ITU. The descendants is assigned both short text strings and integers that identify them (the text strings is used by humans To understand object names; Computer software uses the integers to form compact, encoded representations of the names). ISO have allocated one subtree for use by other na
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.