home *** CD-ROM | disk | FTP | other *** search
- <include layout/heilay.hei>
-
- <heitmlpage title="SQL Form" banner="banner3.gif">
-
-
- Now you can enter an arbitrary SQL-Query on our example database. Here are a few variations on the SELECT command that you might like to try:
-
- <p>
-
- <box>
-
- <FONT SIZE="-1"><b>
-
- <ul>
-
- <li> SELECT * FROM guestbook
-
- <li> SELECT Guest_Name FROM guestbook ORDER BY Guest_Name
-
- <li> SELECT DISTINCT Guest_Name, Email, Address FROM guestbook ORDER BY Guest_Name
-
- <li> SELECT COUNT (*) FROM guestbook
-
- <li> SELECT COUNT (*) FROM guestbook WHERE Country="USA"
-
- <li> SELECT * FROM guestbook WHERE Guest_Name LIKE 'R%'
-
- </ul>
-
- </FONT></b>
-
- </box>
-
- <p>
-
- Watch how the Query Result changes depending on the form of the SELECT command that you enter.
-
-
-
-
-
- /******************************************************************
-
- Here is the input form that allows the user to enter
-
- an SQL query.
-
- *****************************************************************/
-
- <FORM ACTION="sqlquery.hei" METHOD=GET>
-
- <INPUT TYPE="submit" VALUE="Query" NAME=Squery>
-
- <INPUT TYPE="reset" VALUE="Reset">
-
- <sa href="tutor1.hei"> Back </sa>
-
- <br>
-
-
-
- <TEXTAREA NAME="query" ROWS=6 COLS=55 wrap="physical"><
- if isempty(ff.query)>
- SELECT * FROM guestbook
-
- <else><? ff.query></if></TEXTAREA>
-
- <br>
-
-
-
- Format:
-
- <select name="format" size=1>
-
- <option value="table"> as table
-
- <option value="record"> as record
-
- </select>
- <sessionhidden>
- <br>
-
- </FORM>
-
- /*************** End of SQL query input FORM ************/
-
-
-
- </b>
-
-
- <if !isempty(ff.Squery)>
- <include>f<? ff.format>.hei</include>
- </if>
-
- </heitmlpage>
-
-