Select foreign_key = B. Name,
Foreign_key_table = C. Name,
Foreign_key_columns
= Isnull (Select name from syscolumns
Where id = C. ID and colid = A. fkey1 ),'')
+ Isnull (select ',' + name from syscolumns
Where id = C. ID and colid = A. fkey2 ),'')
+
DML: Data Manipulation languageINSERTDELETESELECTUPDATESELECT:SELECT Select-list from tbname| tbnames| SELECT ACTION QualificationSelect-list Search ListDISTINCT, the same value is displayed only once.As Alias Field alias* All contentField fields
MySQL select query command under Linux
Select query Format:SELECT field from table WHERE condition;
For example: SELECT * from table name; #查询表所有内容SELECT Field 1, Field 2 ... from table name; #投影 to display only the content in
Normal row-column conversion (version 1.0) only provides static and dynamic writing for SQL server 2000, and version 2.0 adds SQL server 2005 writing.
Question: Suppose there is a student orders table (tb) as follows:
Name course score
Zhang San
Normal row-column conversion (version 1.0) only provides static and dynamic writing for SQL Server 2000, and Version 2.0 adds SQL Server 2005 writing.
Question: Suppose there is a student orders table (TB) as follows:
Name course score
Zhang
Normal row-column conversion (version 1.0) only provides static and dynamic writing for SQL Server 2000, and Version 2.0 adds SQL Server 2005 writing.
Question: Suppose there is a student orders table (TB) as follows:
Name course score
Zhang
Data add and delete change to insert data1. 插入完整数据(顺序插入) 语法一: INSERT INTO 表名(字段1,字段2,字段3…字段n) VALUES(值1,值2,值3…值n); 语法二: INSERT INTO 表名 VALUES (值1,值2,值3…值n);2. 指定字段插入数据 语法: INSERT INTO 表名(字段1,字段2,字段3…) VALUES (值1,值2,值3…);3. 插入多条记录
##############################################################################################Data import: Store the contents of the system files in the table of the databaseCommand:Load data infile "directory/file" into table name fields terminated
Is there any optimization method for the following code?
$catalog_1 = "select name from commodity where catalog = 1 ORDER BY rank desc LIMIT 10";$result_1 = mysql_query($catalog_1);while($row_1 = mysql_fetch_assoc($result_1)){ $response [] =
Title: normal row/column conversion (Version 2.0)
Note: normal row/column conversion (version 1.0) only provides static and dynamic writing for SQL Server 2000, and Version 2.0 adds SQL Server 2005 related writing.
Question: Suppose there is
Question: Suppose there is a student orders table (TB) as follows:
Name course score
Zhang San Language 74
James math 83
Zhang San physical 93
Li Si language 74
Li Si mathematics 84
Li Si physical 94
(The following result is displayed ):
Name,
-- Row and column conversion of classic SQL statements
-- Http://www.programbbs.com/doc/4885.htm/##:normal row-column conversion (Version 2.0) Description: normal row-column conversion (version 1.0) only provides static and dynamic writing for SQL
The table has three columns: stunamem and subject score.Table data includes:Zhang San Language 0Li Si Language 4Wang 'er English 90Zhang San, mathematics 333The query results are as follows:Chinese and English mathematics for studentsZhang San 0 0 33
Question: Suppose there is a student score table (TB) as follows:
Name Course Score
John Language 74
John Math 83
John Physics 93
Dick Language 74
Dick Math 84
Dick Physics 94
Want to become (get the following results):
Name Chinese mathematics
MySQL Query miscellaneous 1, display the current system timeMariaDB [hellodb]> SELECT NOW();+---------------------+| NOW() |+---------------------+| 2017-01-20 05:10:32 |+---------------------+2. Remove duplicate content QueryKeep only
Mysql ---- SELECT names/zh, mysqlsetnamesutf8
Language:
English•Chinese
Name
Continent
Afghanistan
Asia
Albania
Europe
Algeria
Africa
Andorra
Europe
Angola
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.