-
1. Add (insert a record into the database).
insert into the table name (column name 1, column name 2, column name 3......)values('Value 1,'Value 2','Value 3'……)
Example: insert into muser(id,name,pwd).
values('1','admin','admin')
Note: The number of columns must be the same as the number of values given in the values clause. The data type must correspond to the data type of the class.
2. Delete (delete data from the table).
The delete statement is used to delete data, either one row at a time or multiple rows.
Basic syntax for delete statements:
delete from table name where condition.
Example: delete from muser where id='1' and pwd='admin'
3. Update (modify the data in the table).
The update statement is used to modify existing data, and the update statement can affect one row, multiple rows, or even all data.
The basic syntax of the update statement:
update table name set
Column name ='The data that needs to be modified is required'
where modifies the condition.
Example: Update muser set
pwd='admin888'
where name='admin' and pwd='admin'
4. Check (use select to query the database).
The select statement is mainly used to retrieve data.
The basic syntax of the select statement:
select column name.
from the table name.
where the criteria of the retrieval.
Example: select * from news where class='Domestic news'
The use of (*) in the column name indicates that all columns specified from the from table are returned.
-
What are the commands for those databases you want to ask?
Is it a query? Operational or administrative?
Select, update, insert, deletealter, create, drop, lock table, and management commands, MySQL, Oracle, SQL Server database commands are different.
-
select * from indication.
update table name.
set field=''
where condition.
delete from table name where condition.
At least the basic things must be mastered, such as: the linear structure of the database, the storage method, the way to call Hezheng, and the operation of the table in the database (to use statements to erect the bench to achieve). >>>More
Master the basic syntax, look at the implementation of functional requirements, and take a look at the well-written examples.
The prospect of learning UI is good, and there are many training institutions, so the local people may choose to visit and understand the real teachers and educational strength of the school before making a choice. Share the general development of the UI, I hope it will be useful to you. >>>More
The deletion operation in the data is irreparable, sometimes the data in the data table may be deleted due to misoperation, or the database crashes for other reasons, and all the data is lost, especially when there is a large amount of useful data in the database, then it is impossible for you to enter the data again from the beginning, this is the role of the backup database, back up the database, when the above situation occurs, you can restore the previous database through the backup file.
The structure of the storage is the main basis for classifying the types of copy databases. In today's Internet, databases are usually divided into two categories, namely relational and non-relational databases. >>>More