![MACROMEDIA DREAMWEAVER 8-GETTING STARTED WITH... Скачать руководство пользователя страница 222](http://html1.mh-extra.com/html/macromedia/dreamweaver-8-getting-started-with/dreamweaver-8-getting-started-with_getting-started_3331098222.webp)
222 Understanding Web Applications
Accessing a database
An application server lets you work with server-side resources such as
databases. For example, a dynamic page may instruct the application server
to extract data from a database and insert it into the page’s HTML. For
more information, see
Appendix A, “Beginner’s Guide to Databases”
in
Using Dreamweaver
.
The instruction to extract data from a database is called a database query. A
query consists of search criteria expressed in a database language called
SQL (Structured Query Language). The SQL query is written into the
page’s server-side scripts or tags.
An application server cannot communicate directly with a database because
the database’s proprietary format renders the data undecipherable in much
the same way that a Microsoft Word document opened in Notepad or
BBEdit may be undecipherable. The application server can communicate
with the database only through the intermediary of a database driver:
software that acts like an interpreter between the application server and the
database.
After the driver establishes communication, the query is executed against
the database and a recordset is created. A recordset is a set of data extracted
from one or more tables in a database. The recordset is returned to the
application server, which uses the data to complete the page.
Here’s a simple database query written in SQL:
SELECT lastname, firstname, fitpoints
FROM employees
This statement creates a three-column recordset and fills it with rows
containing the last name, first name, and fitness points of all employees in
the database. For more information, see
Appendix B, “SQL Primer”
in
Using Dreamweaver
.
Содержание DREAMWEAVER 8-GETTING STARTED WITH...
Страница 1: ...Getting Started with Dreamweaver...
Страница 8: ...8 Contents...
Страница 10: ......
Страница 46: ...46 Dreamweaver Basics...
Страница 48: ......
Страница 128: ...128 Tutorial Formatting Your Page with CSS...
Страница 136: ...136 Tutorial Publishing Your Site...
Страница 138: ......
Страница 189: ...Add a Repeat Region XSLT object 189 3 Select Insert XSLT Objects Repeat Region...
Страница 196: ...196 Tutorial Displaying XML Data...
Страница 216: ......
Страница 230: ...230 Understanding Web Applications...
Страница 236: ...236 Installing a Web Server...
Страница 254: ...254 Setup for Sample ColdFusion Site...
Страница 268: ...268 Setup for Sample ASP NET Site...
Страница 284: ...284 Setup for Sample ASP Site...
Страница 300: ...300 Setup for Sample JSP Site...
Страница 320: ...320 Setup for Sample PHP Site...