How do I write an asp database select statement?

Updated on technology 2024-03-19
10 answers
  1. Anonymous users2024-02-07

    select * from table name where lab='101'and name='Sulfuric acid', don't know your table structure, so to give you the simplest select, you can talk about your table structure.

  2. Anonymous users2024-02-06

    select top 3 * from [table] where id not in (select top 6 id from [table] order by [sort] asc) order by [sort] asc

    Note that the Sort rules for the outer and inner sides should be exactly the same.

  3. Anonymous users2024-02-05

    select * from school where id>6 and id<10

    This condition is now set only 789Let's take a look at :)

  4. Anonymous users2024-02-04

    When writing a SQL statement, you can use it repeatedly**!

    The database connection should be closed after use, ASP does not automatically close the connection like high-level languages, in order to save server resources, the connection should be closed as much as possible to release the resources occupied by the connection!

  5. Anonymous users2024-02-03

    You can try out the command object. For details, go to MSDN to take a look.

  6. Anonymous users2024-02-02

    SQL is basically generic, that is.

    sql1="select * from namesfz where flage=1"That's right.

  7. Anonymous users2024-02-01

    Your statement is right on its own.

  8. Anonymous users2024-01-31

    Of course you can, it's the same as if nesting;

    case "100"

    select case bbb

    case "101"

    end select

    case "200"

    end select

  9. Anonymous users2024-01-30

    select * from (your table name) where name="Zhang San" 'This is an exact query.

    select * from (your table name) where name like"Zhang San" 'This is a fuzzy query.

    If you use to record the pointer name. recordcount to get the number of records associated with it.

    After the query result is obtained, you can display all the information in a loop.

  10. Anonymous users2024-01-29

    select * from table name where name='Zhang San'

    The where phrase of select is a condition that filters the recordset that controls the display

Related questions
12 answers2024-03-19

In order, remember to turn it off when you are finished.

3 answers2024-03-19

At least the basic things must be mastered, such as: the linear structure of the database, the storage method, the way to call Hezheng, and the operation of the table in the database (to use statements to erect the bench to achieve). >>>More

6 answers2024-03-19

The prospect of learning UI is good, and there are many training institutions, so the local people may choose to visit and understand the real teachers and educational strength of the school before making a choice. Share the general development of the UI, I hope it will be useful to you. >>>More

11 answers2024-03-19

The deletion operation in the data is irreparable, sometimes the data in the data table may be deleted due to misoperation, or the database crashes for other reasons, and all the data is lost, especially when there is a large amount of useful data in the database, then it is impossible for you to enter the data again from the beginning, this is the role of the backup database, back up the database, when the above situation occurs, you can restore the previous database through the backup file.

6 answers2024-03-19

The structure of the storage is the main basis for classifying the types of copy databases. In today's Internet, databases are usually divided into two categories, namely relational and non-relational databases. >>>More