This note sorts out the video lecture "SQL from getting started to improving" trained by Yang zhongke in Chuanzhi podcast. net. Video related links: http://www.rupeng.com/forum/tj-16325-2477.html
Database concepts
1. What is an index? What are the
* Description: copy a table (only copy structure, source table name: a new table name: B)Select * into B from a where 1 <> 1
* Description: copy a table (copy data, source table name: A target table name: B)Insert into B (a, B, c) Select D, E, F
Note: copy a table (only copy structure, source table name: a new table name: B)Select * into B from a where 1 <> 1
Description: copy a table (copy data, source table name: A target table name: B)Insert into B (a, B, c) Select D, E, F from B;
Note: copy a table (only copy structure, source table name: a new table name: B)Select * into B from a where 1 <> 1
Description: copy a table (copy data, source table name: A target table name: B)Insert into B (a, B, c) Select D, E, F from B;
Note: copy a table (only copy structure, source table name: a new table name: B)Select * into B from a where 1 <> 1
Description: copy a table (copy data, source table name: a target table name: B)Insert into B (a, B, c) select d, e, f from B;
Description: Copy table (copy only structure, source table name: A new table name: b)SELECT * into B from a where 1<>1
Description: Copy table (copy data, source table name: A target table name: b)Insert into B (A, B, c) select d,e,f from B;
1. Column and column Conversion
The data structure of the original table (Here It Can Be A view V_AnswerList), as shown in:
Write the stored procedure:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--
I. Basics
1. Description: Create a database
Create Database database-name
2. Description: delete a database.
Drop database dbname
3. Description: Back up SQL Server
--- Create a device for the backup data
Use master
Exec sp_addumpdevice 'disk',
I. Basics
1. Description: Create a database
Create Database database-name
2. Description: delete a database.
Drop database dbname
3. Description: Back up SQL Server
--- Create a device for the backup data
Use master
Exec sp_addumpdevice 'disk',
Note: copy a table (only copy structure, source table name: a new table name: B)Select * into B from a where 1 <> 1
Description: copy a table (copy data, source table name: A target table name: B)Insert into B (a, B, c) Select D, E, F from B;
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.