Preface --> The following content is from the Internet. If you feel like you are doing anything wrong, contact me.
I. Data Control Statement (DML)
1. insert (insert the record statement into the data table)
Insert into Table Name (field name
I. Data Control Statement (DML)
1. insert (insert the record statement into the data table)
Insertinto table name (field name 1, field name 2 ,......) Values (value 1, value 2 ,......);Insertinto table name (field name 1, field name 2 ,......)
1. INSERT (INSERT the record statement into the data table)
Insert into Table Name (field name 1, field name 2 ,......) VALUES (value 1, value 2 ,......);Insert into Table Name (field name 1, field name 2 ,......) SELECT (field name 1, field name 2
form QuerySimple QuerySELECT statementQuerying all fieldsSpecify all fields: Select Field Name 1, field name 2,...from table name;SELECT * from table name;Querying a specified fieldSelect Field Name 1, field name 2,...from table name;Query by
I. Startup and shutdown of Oracle1, in a single-machine environment2, in the dual-machine environmentIi. What kinds of startup methods are available for Oracle database?1, startup Nomount non-installation start, this way startup executable: Rebuild
Oracle Basic SyntaxI. Startup and shutdown of Oracle1, in a single-machine environmentTo start or shut down an Oracle system, you must first switch to an Oracle user, as followsSu-oracleA. Start the Oracle systemOracle>svrmgrlSvrmgr>connect
Oracle|sql Grammar | object | Data one. Data Control statement (DML) section
1.INSERT (Insert the statement into the data sheet)
INSERT into table name (field name 1, field Name 2, ...) Values (value 1, value 2, ...);
INSERT into table name (field
Single-Table QueryMySQL query data from the data table is the most basic statement is a SELECT statement, in the previous "additions and deletions" has been used: SELECT * from the table name, that is, to query all the data in the specified data
View the role of the current userSELECT * from User_role_privs;View system and table-level permissions for the current userSELECT * from User_sys_privs;SELECT * from User_tab_privs;View all the tables under the userSELECT * from User_tables;View all
I. Data Control statement (DML) section
1.INSERT (Insert the statement into the data sheet)INSERT into table name (field name 1, field Name 2, ...) Values (value 1, value 2, ...);INSERT into table name (field name 1, field Name 2, ...) SELECT Field
--Table data query---- basic query of data ---- simple query of data --SELECT * | field name [, field Name 2, ...] from data table name [WHERE condition expression]Cases:Use Commodity Management databaseGoSELECT * From commodity information
To use a database:
Link MySQL server
Select Database
Increase and deletion of data sheets
Close the database
ExitQuitExit\qCommon operations\c Cancel the unfinished operation.\g instead of TerminatorDatabase operations:Show
MYSQL Database Operations– Login mysql:--–After the Windows environment into CMD, enter Mysql–h localhost–u root–p, and then enter the password to start MySQL, where localhost is the MySQL server is the IP, if it is native can use localhost.–
Field property settingsNot NULL is not emptyAuto_increment sets the value of the Int type field to "self-grow", meaning that its value does not need to be "written" and is automatically obtained and incrementedNote: This property must be used
I. Startup and shutdown of Oracle1, in a single-machine environmentTo start or shut down an Oracle system, you must first switch to an Oracle user, as followsSu-oracleA. Start the Oracle systemOracle>svrmgrlSvrmgr>connect
Some of the most commonly used SQL statement syntax for the triple compilation. Need a friend to come over to refer to the next
I. Data Control statement (DML) section
1.INSERT (Insert the statement into the data sheet)
INSERT into table name
Part of the Data Control statement (DML)1.INSERT ( insert a recorded statement into the data table )INSERT into table name (field name 1, field Name 2, ...) Values (value 1, value 2, ...);INSERT into table name (field name 1, field Name 2, ...)
Basic mysql operations,
Database and table operations
Add:
Create database: create database mpc [charset utf8]; (sets the database encoding)
Create a data table: create table [if not exists] table Name (Field 1, Field 2... [Index 1, index 2 ...,
Second, SQL structur Query Language Structured Query language, is the object in the Operation relational database.DDL (data definition Language), used to create or delete table operations, and to modify table constraints CREATE TABLE, ALTER TABLE,
1.INSERT (Insert the statement into the data sheet)
INSERT into table name (field name 1, field Name 2, ...) Values (value 1, value 2, ...);INSERT into table name (field name 1, field Name 2, ...) SELECT (field name 1, field Name 2, ...) from
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.