First of all, recommend a more useful database management software: Navicat Premium.
The most important retrieval function in a database: SELECT statement
1. Retrieve a single column: Select Column name from table name;2. Retrieve
1. Basic structure of the query: Select column name as alias from table name;2. Database query operations are basically divided into three categories: projection operations, selection operations, sorting operations.3. Projection operation: Select
Dml:The statement that adds SQL data to the table is the insertINSERT into (column name) values (value list)/increase the properties of the corresponding columnMull and null values are different in the databaseInsert into table name (column name)
First, group:The grouping function can manipulate the rowset and give a result for each group. Use GROUP by Column1,column2,.. Group by Columm1,column2, that is, Column1,column2 combines the same value as a groupSecond, commonly used grouping
Database is known for the ID of a data, how to query the next data and the ID is differentFirst ID is known, if you get the "1001", the data ID of the next bar may be the same, there may be different, how to query? If you query directly"SELECT *
1. SQL statements are divided into data manipulation language (DML) and data definition language (DDL)Data Manipulation Language section:
Select Get Data
Update updates data
Delete Deletes data
INSERT INTO Inserts data
Data
//*************Oracle Basic Operation statement (for beginners)Oracle Operation statements:1. Create a tableCREATE TABLE Table name (Column Name 1 type,Column Name 2 type);2. Modifying class PropertiesALTER TABLE name modify (column name type);3.
Combine WHERE clauses for more powerful data filteringAnd operator
SELECT column name 1, column name 2, column name 3 from table name WHERE condition 1 and Condition 2;
And in the WHERE clause, indicates that the row that satisfies all
First, the basic concept of the database:1. The advantages of centralized control of database:(1) Reduce the redundancy of storage data(2) Higher data consistency(3) The stored data can be shared(4) standards that can be established for database
Database role: Storage data MySQL relational database management system, developed by the Swedish MySQL AB company, currently belongs to Oracle Corporation. Current Mainstream database: Microsoft: Aqlserver accessoracle:oracle mysql JAVAIBM company:
First, install the SQLite3 method1. Character interfacesudo apt-get install Sqlite32. Graphical interfacesudo apt-get install SqlitemanSecond, SQLite data typeSQLite has the following five basic data types:1, Integer: Signed integer (up to 64 bits).2
The string is enclosed in single quotation marksThe comparison in the database is =, not the double equals signLogic andLogical OR ORLogical non-notCRUD OperationsI. C:create added, created, adds data to the database.Insert into table name values ('
Advanced queries are most frequently used in databases and are also the most widely used. For more information about how to learn sqlserver, see.
Advanced queries are most frequently used in databases and are also the most widely used. For more
SQL is a data-based Query Language. The objective of learning the SQL language is to operate the data database. Let's take a look at some query methods of SQL statements in the database. 1. Simple query: query data from a single table. Syntax:
Reading: we all know that a MySQL database can store a large amount of data. If you want to find that data, you have to spend a lot of time and effort to find it from a lot of data, at this time, the emergence of indexes greatly reduces the work of
I. Basic query statements, Special symbol |. Specifies the column alias AS, which uniquely identifies distinct.
1. Character connector "|" and "+"
Oracle: select column name | '123' from Table NameSQL: select column name + '000000' from table name T
Oracle notes Collection (1)
User: Username: scott password: tiger login: sqlplus scott/tiger exit: exit to view the tables of the current user: select * from tab; ===============================display the current user SQL> show userUSER as "SYS"
SQLite is a database product frequently used in software development on the Android platform. As a lightweight database, SQLite is designed to be embedded, moreover, it is already used in many embedded products, and its resource usage is very low.
Set of common SQL statements and SQL statements
I. Data Definition 1. CREATE a new DATABASE: create database database_name2. CREATE a new TABLE: create table table_name (column_name datatype, column_name datatype ,...)3. modify a data table:ADD
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.