I. Introduction to SQL languageWhen faced with a strange database, it is often necessary to interact with it in order to complete the various tasks that the user needs, and the SQL language is needed. SQL (structured query Language) Structured Query
Mainly from the above space to introduce some of MySQL's knowledge pointsI. MySQL INTRODUCTIONMySQL is a relational database management system developed by the Swedish MySQL AB company and is currently part of Oracle's product portfolio. MySQL is
Update MySQL user set Password=password (' 1234 ') where user= ' Ming 'Delete from MySQL user where user= ' and host= 'Ipconfig/allPing 127.0.0.1If not existsThe CREATE table if not EXISTS table name (field name fields type)Engine=innodb DEFAULT
Today is our knowledge of data related to the next day.First, the field type of the database 1. OverviewIn MySQL, the main types of data are three kinds:Digital, character type, time typeThe primary function of the data type is to set the type of
It is written in C ++ and modular design. It can be embedded into programs written in any language, or directly called in various popular scripts. All operations are encapsulated in the module. You only need to call the corresponding export function
Database-create databases, basic tables, and views, Use triggers, and view triggers
I. Create a database
Create database database_name; // create a database
Drop database database_name; // delete a database
Ii. Create a basic table
1. Create a table
Using SQL functions, you can directly calculate the average, total, minimum, maximum, sum, standard deviation, and variance statistics of database data in a query of a SELECT statement. You can also use these SQL functions when using a Recordset
Title:mssql injection in explicit and non-error mode--2010-10-27 19:51The recent use of manual injection with the habit, then list the most recent use of the MSSQL statement, later convenient to use!---------------------------------------------------
Generic Syntax: altertable [Table name] add [field name] field property default value is an optional parameter instance: altertable class Table 2addCOLUMN group int0 The following example may be true columnaltertable [Table name] add field name
I am used to using manual injection recently. I will list the recently used Mssql statements for convenience in the future!
Certificate ------------------------------------------------------------------------------------------------------------------
(1) Data Record Filtering:
SQL = "select * from data table where field name = Field Value Order by field name [DESC]"
SQL = "select * from data table where field name like/'% Field Value %/'order by field name [DESC]"
SQL = "select top 10 * from
Two ways to insert records:Insert Basic Syntax One
category
Detailed Solution
Basic syntax
Insert into table values (value 1, value 2, value n);
Example
INSERT into user values (2,
MySQL Add, delete, change, plugFull table query table recordFormat 1:select Field 1, ... field N from library name. Table name;Format 2:select Field 1, ... field N from library name. Table name where conditional expression;Precautions:1. Use "*" to
The role of the primary and foreign keys of sql:Foreign key value rule: A null value or a reference primary key value.(1) When a non-null value is inserted, it cannot be inserted if the value is not in the primary key table.(2) When updating, you
Oracle
field type is VARCHAR2, format to match formatted style
That day
SELECT * FROM table name where To_char (to_date (field name, ' Yyyy-mm-dd hh24:mi:ss '), ' DD ') =to_char (sysdate, ' DD ')
When the week
SELECT * FROM table name where To_char (
Before creating a database, determine if the database exists if exists (SELECT * from sysdatabases where name= ' databaseName ') drop DB databasenamegocreate DATABASE Databasenameon primary--belongs to the primary filegroup by default, which can be
The role of the primary and foreign keys of sql:Foreign key value rule: A null value or a reference primary key value.(1) When a non-null value is inserted, it cannot be inserted if the value is not in the primary key table.(2) When updating, you
Php uses regular expressions to intercept characters. [help] which of the following experts will help you: I want to extract {dede: fieldnamekeywords} {dede: field} {dede: fieldnamedescription} {dede: field} {dede: fieldnametitle} down. sucai.
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.