"SQL Server Learning Notes" (1)

Source: Internet
Author: User

Basic knowledge:

  1. DDL (data definition language)

    Create object_name

    Alter object_name

    Drop object_name

  2. DCL (Data Control Language)

    Grant (Authorization) eg:grant select on dbo. Tstudent to Public

    Deny (Deny) Eg:deny select,update on authors to Mary,john

    Revoke (cancel)

  3. DML (Data Manipulation language)

    Select Insert Update Delete

  4. @ Represents a local variable or parameter

  5. #代表临时表或存储过程 (available only to the current user)

    # #代表全局临时表 (available to all users)

    Temporary tables are found in tempdb in the system database

  6. Char is suitable for storing English, one byte occupies one byte;

    NCHAR suitable for storing Chinese, one character occupies 2 bytes


This article is from the "Professional @ Learning" blog, be sure to keep this source http://6473007.blog.51cto.com/6463007/1600802

"SQL Server Learning Notes" (1)

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.