Introduction to ASP Programming (20): The display data record of ADO component

Source: Internet
Author: User
Learn the ASP Long March is almost to the end: And so the ASP's ADO components. Of course this is also the most important step, almost all of the previous learning is for this ultimate goal. OK, here is a detailed system to one by one master, step-by-step, broken.
One, owning a database
It can be said that static pages and dynamic pages The biggest difference is the use of the database. About a Web program using the database and not to use the superiority of comparison, not to analyze carefully, the main focus on how to use the database, how to skillfully use the database, how to use the database more flexibly, etc. ... The operation database is used mainly for the content of the database: display, insert, modify, update, query and delete.
These methods of course also is not a mouthful can eat out, to slowly feel chewing, understanding digestion. Of course, it is important to have a database first. Otherwise, all is empty talk, Qiao daughter-in-law difficult bricks without straw well.
Generally speaking, the database is actually a database file, which is built by some database management system (DBMS). At present the common DBMS is also commonly used to hear access,sqlserver,mysql,oracle. Of course, the general personal site, the small business to take access is completely enough; a little larger is the same Microsoft SQL Server or MySQL, and it's worth noting that MySQL is generally a perfect combination of PHP with another network programming language. Of course, the larger use of Oracle. Oh, once in the study of PB also applied to Sybase database, UNIX system Informix Database ... DBMS is a dime a-_-!.
In other words, we are now directly using Access: 1, easy to use, 2, easy to get started to master, 3, there is no more suitable for beginners.
Everything has to start with the actual operation.
1, open the Access database, select New database, name it Cnbruce.mdb, and save it to a specialized folder database
[Blocked ads]
2, in the New database container Double-click "CREATE table using designer", the pop-up Table 1 window in the field name entered "cn_id", the data type select AutoNumber, and select the Key button in the upper toolbar to set the field as the primary key.
Continue to enter field "Cn_title", Data type Select "Text", Next Enter Field "Cn_content", data type Select "Remark";
PS: The biggest difference between notes and generic text is that the notes allow more field values to be inserted, which is especially important when inserting some longer articles.
Still enter field "Cn_author", Data type Select "Text", and switch to "allow empty string" in "General" below to select "Yes".
PS: This surface allows the value of the Cn_author field to be empty, which is important when submitting a form where some information is not filled out but is inserted correctly into the database.
Finally enter field "Cn_time", Data type Select "Date/Time", continue to switch to "default value" in "General" enter "Now" function

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.