Your own SQL Server plus the client

Source: Internet
Author: User
Tags create index

The SQL Server itself is made up of client-side, with syntax parsing and simple database operation (no database APIs using MFC). The interface uses the Cj60lib class library, and the syntax display uses the Crystaledit class.

Login account: Aministrator:admin admin, you can add accounts and change account types.

Super User:superuser Superuser, you can perform all the operations.

User:user user, you can only perform query functions.

Simple Feature Introduction:

I. Data definition DDL (data definition Language)

1, build the form:

CREATE TABLE table_name(
   column1 DATATYPE ,
   column2 DATATYPE ,
   ...);

Description: DATATYPE--is the format of the data, including:

int 4 BYTES
   long 4 BYTES
   float 8 BYTES
   date
   char( NUM ) NUM :数目,用户定义

2, establish the index:

CREATE INDEX index_name ON table_name (column_name);

Description: Index The field of a table to increase the speed of the query.

3, delete the form:

DROP TABLE table_name;

4. Delete index:

DROP INDEX index_name;

Ii. Data manipulation DML (data manipulation Language)

1. Additional Information:

INSERT INTO table_name (column1,column2,...)
   VALUES ( value1,value2, ...);

Description

1. If no column system is specified, the information will be filled in the order of the fields in the table.

2. The data form of the field and the information to be filled must match.

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.