(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
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
Creating data TablesThe following information is required to create a MySQL datasheet:
Table name
table field Name
Define each table field
Grammar
The following is the SQL general syntax for creating a MySQL datasheet:
CREATE TABLE table_name (column_name column_type);
In the following example, we will create a datasheet in the tu
′,′ 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
', ' 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
Inserting datainserts into the SQL statement in the MySQL table to insert the data.You can insert data into a datasheet via the mysql> Command Prompt window, or insert data through PHP scripts.GrammarThe following is a generic insert into SQL syntax for inserting data into the MySQL data table:
INSERT into table_name (field1, Field2,... fieldn)
VALUES
(value1, value2,... Valuen);
If the data is a character type, you must use
Active Record (AR) is a popular Object relational mapping (ORM) technology. Each AR class represents a datasheet (or view) whose field is the property of the Ar class, and an AR instance represents a row in the table. Common CRUD operations are performed as methods of the AR class. So we can work with our data in a more object-oriented way. For example, we can insert a new row in the Tbl_post table using the following code:
The code is as
through visual Studio 2005来, select to Server Explorer, where you will find a data connection node (see the snapshot above). You can add a new database connection by right-clicking on the Data Connection node and choosing Add Connection. This will bring up a dialog box that prompts you for information such as database server, authentication information, what database to use, and so on. If you have a SQL Server Express version installed on your own machine, the database is installed by default b
image field generation program, directly display the image field
11, built-in can be customized detailed viewing page
12, the input parameters have been filtered to prevent SQL Server injection attacks
13. Prevent non-page submission
14, automatic paging technology, reduce the number of query data return
15, provide the built-in value of the field of the total function
16. Data table export Excel format directly
17. You can specify a column to use the HTML editor when adding records
18, directl
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.