field name [desc]"Sql= "SELECT * from data table where field name like '% field value% ' Order by field name [desc]"Sql= "SELECT top * from data table where field name order by field name [desc]"Sql= "SELECT * from data table where field name in (' Value 1 ', ' Value 2 ', ' Value 3 ')"Sql= "SELECT * from data table where field name between value 1 and value 2"
(2) update data records:
sql= "Update data table set field name = field value where Condition expression"Sql= Update data Table set fi
records:
sql= "Update data table set field name = field value where Condition expression"
Sql= Update data Table set field 1= value 1, field 2= value 2 ... Field n= value nwhere conditional expression "
(3) Delete data records:
sql= "deletefrom data table where condition expression"
sql= "Deletefrom data table" (delete all records in datasheet)
(4) Adding data records:
Sql= "Insertinto Datasheet (field 1
example, so if you want to increase the query efficiency of a SELECT statement on a query, you can replace the nested query with a connection query.
The inner Connection is table 1 inner JOIN table 2on its result returns all matching rows in two tables
left-outward join table 1 leftouter join table 2on Returns the result set will include all the records in Datasheet 1, not just the records that the connection fields match. If a record in
application using the Customer maintenance form.Figure 2 shows the Customer Maintenance screen, which has a DataGrid object that is bound to the Dsalldata customers datasheet. This simple table allows the CSR to edit any basic attributes of the customer. Because the table is bound to a customers datasheet, any changes in the table are automatically stored in the datash
extend features outside of these data sources and into the middle or upper layers of n-tier structure applications. With column expressions in Ado.net, you can build your own columns with computed values in the dataset, compute the values of other columns in the same row, and even get values from the parent datasheet or subdatasheet through a data relationship (DataRelation). New techniques for managing data are formed by using column-based expressio
:
sql= "Update data table set field name = field value where Condition expression"
Sql= Update data Table set field 1= value 1, field 2= value 2 ... field n= value n Where Condition expression "
(3) Delete data records:
Sql= "Delete from data table where condition expression"
Sql= "Delete from data table" (delete all records from datasheet)
(4) Adding data records:
sql= INSERT into Data table (field 1, Field 2, Field 3 ...) valuess (value 1, value 2,
(1) Data record filtering:
sql= "select*from data table where field name = field value by field name [desc]"
sql= "select*from data table where field name like '% field value% ' By field name [desc]"
sql= "selecttop10*from data table where field name by field name [desc]"
sql= "select*from data table where field name in (' Value 1 ', ' Value 2 ', ' Value 3 ')"
sql= "select*from data table where field name between value 1and value 2"
(2) Update data records:
sql= "Update data table set field nam
where field name order By field name"
Sql= "SELECT * from data table where field name in (' Value 1 ', ' Value 2 ', ' Value 3 ')"
Sql= "SELECT * from data table where field name between value 1 and value 2"
(2) Update data records:
sql= "Update data table set field name = field value where Condition expression"
Sql= Update data Table set field 1= value 1, field 2= value 2 ... field n= value n Where Condition expression "
(3) Delete data records:
Sql= "Delete from data table where condition
need to do is to do a series of basic operations on the database. Add a record: Open the form in Datasheet view or Form view, click the New Record button on the toolbar, type the data you want, and then press the TAB key to go to the next field, and at the end of the record, press the TAB key to go to the next record.
Edit a record: If you want to edit the data in a field, click the field that you want to edit, if you want to replace the entire fiel
your data in a dozen.)
Type ' http://your domain/phpmyadmin ' in the browser to manage and create MySQL for customers
Database.
Using phpMyAdmin to manage MySQL databases
1, after you create your database (or service provider to your database name), click to select, and then press "Manage this database", will enter the database Web management interface,
Can create table, manage content, etc.;
2, double-click your database, the data table in the database will be displayed, and in the right h
basic Operations
The structure of the database has been created, and the next thing we need to do is to do a series of basic operations on the database. Add a record: Open the form in Datasheet view or Form view, click the New Record button on the toolbar, type the data you want, and then press the TAB key to go to the next field, and at the end of the record, press the TAB key to go to the next record.
Edit a record: If you want to edit the data in
This section will analyze a more complex example based on the pl/sql of the previous study to teach readers how to write a complete pl/sql program.Example Design1. Function designThe postgraduate enrollment system developed by a university requires the design of the pl/sql procedure to deal with the candidate's performance data, and the logic of the processing is to automatically classify candidates as admission candidates, dispensing candidates and unsuccessful candidates according to the minim
operation cancelled by user
3060 parameter 3061 too few parameters. Expectations 3062 Duplicate output alias 3063 Duplicate Output Purpose 3064 cannot open action query 3065 cannot perform a select query
3066 query must contain at least one destination field
3067 query input must contain at least one datasheet or query
3068 is not a valid alias
3069 action Query 3070 the Microsoft Jet database engine does not recognize 3071 the expression you typed i
=sa; pwd= database password; database= database name%>
To set up a Recordset object:
Set Rs=server.createobject ("Adodb.recordset")Rs.Open SQL statement, conn,3,2
How to use SQL frequently used commands:
(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 * from data table where field name order by field name [desc]"Sql=
data table where condition expression"
Sql= "Delete from data table" (delete all records from datasheet)
(4) Adding data records:
sql= INSERT into Data table (field 1, Field 2, Field 3 ...) valuess (value 1, value 2, value 3 ...)
Sql= INSERT INTO Target datasheet SELECT * from source datasheet (add a record from the source d
2"
(2) Update data records:
sql= "Update data table set field name = field value where Condition expression"Sql= Update data Table set field 1= value 1, field 2= value 2 ... field n= value n Where Condition expression "
(3) Delete data records:
Sql= "Delete from data table where condition expression"Sql= "Delete from data table" (delete all records from datasheet)
(4) Adding data records:
sql= INSERT into Data table (field 1, Field 2, Field 3 ...) va
', ' Value 3 ')"Sql= "SELECT * from data table where field name between value 1 and value 2"
(2) Update data records:
sql= "Update data table set field name = field value where Condition expression"Sql= Update data Table set field 1= value 1, field 2= value 2 ... field n= value n Where Condition expression "
(3) Delete data records:
Sql= "Delete from data table where condition expression"Sql= "Delete from data table" (delete all records from datasheet
sql| programming in the database operation, nothing more than to add, delete, modify, this must be designed to some commonly used SQL statements, as follows:
How to use SQL Common commands:
(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 * from data table where field name order by field name [desc]"
Sql= "SELECT * fr
cases where, if the inserted value repeats with the existing number, an error message occurs because the value of the Auto_increment data column must be unique; condition two, If the inserted value is greater than the numbered value, it is inserted into the data column and the next number is incremented from the new value. In other words, you can skip some numbers.
If the maximum value of the self-added sequence is deleted, the value is reused when the new record is inserted.
If you update th
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.