ASP query FROM statement syntax error 10

Updated on educate 2024-06-02
12 answers
  1. Anonymous users2024-02-11

    You can write a sentence below that line.

    First test whether it is an output SQL statement, if it is, you can take it out and put it in the database to execute it separately, see if the error is reported, if it is wrong, see what error is reported, and then solve the problem according to the error.

    The most suspicious thing in your sentence is the uid.,If you use session to assign a value,,It should be a numeric type.,There's an extra pair of single quotes in the uid in your sentence.,Try to remove it.。

  2. Anonymous users2024-02-10

    Your "UID" should be numeric type, right? Changed to.

  3. Anonymous users2024-02-09

    uid=session("uid")

    set ws= "")

    Say it's wrong here. sql,conn,1,3

    uid is an integer and cannot be +""Number.

  4. Anonymous users2024-02-08

    Take a look**, steps: your site's root directory --> properties --> security --> selection"everyone'Users --> full control, if there are no everyone users, add:

    Add --- Advanced --Find Now -> select everyone--- return authorization to him --ok

  5. Anonymous users2024-02-07

    microsoft jet database engine (0x80040e09)

    It cannot be updated. The database or object is read-only.

    It's that you don't have permission to modify the table.

    You go to the table you want to modify and click Right-Properties--Permissions, and check the corresponding Select Insert. and other permissions on it.

  6. Anonymous users2024-02-06

    Is the field written incorrectly?

    sql="select top 5 * from pinglun where article id="&id&"Order by Leave a comment on desc"

    This is basically satisfied.

    You can add another sort at the end.

    sql="select top 5 * from pinglun where article id="&id&"Order by Leave a Comment Time desc, Comment ID Desc"

    Try this.

  7. Anonymous users2024-02-05

    You have specified the ID and how do you read the first 5 items.

  8. Anonymous users2024-02-04

    sql=sql&" where shenhe1='1' and (xinghao like...or ..order by id desc

    Can you see it.

    This parenthesis takes that or as a condition.

  9. Anonymous users2024-02-03

    You always wrote a few SQL statements,,You can print out the SQL statement first,I preliminarily guess that you may not have executed this SQL sentence,It may be executed to find all the SQL statements,,There is a good table,,shenhe1 field is text or numeric,,This should also be clearly compared

  10. Anonymous users2024-02-02

    ""If you can't see anything, you'll need to see if there's something wrong with your userphoto value.

  11. Anonymous users2024-02-01

    ""In an asp statement, if you want double quotation marks, use two double quotation marks to indicate the ---

    if userphoto="" then

    Change to if len(userphoto)=0 then try.

  12. Anonymous users2024-01-31

    if trim("i_brand")) "" thenstrbrand = trim("i_brand"))elseif trim("i_brand")) = "Please select a brand" then

    strbrand =("/?w = Sorry, please select the brand! ")exit sub

    end if

    I hope it will help you with your questions, if you still don't understand anything, you can consult and help you answer!

Related questions
15 answers2024-06-02

Or is it a matter of logic when you write a program.

First, if then >>>More

17 answers2024-06-02

%@ language = vbscript %>option explicit %>

dim strprm >>>More

10 answers2024-06-02

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.

4 answers2024-06-02

Use the Data Adaptor or Data Reader to bind the data you want and display it. >>>More

14 answers2024-06-02

Just use the in operator wrongly, the logic of in is "or", number in ('1','4','6','13') is equivalent to number='1' or number='4' or number='6' or number='13', and there is no 13 in your number (there is no 13 in 10 values), then it is equal to 13, and the filtering effect is equivalent to not adding this condition, so 3 records are found. According to your intentions, it seems that 0 records should be found, which will probably need to be written as the following command: select number from abc where number in ('1','4','6','13') and exists( select 1 from abc where number='1' ) and exists( select 1 from abc where number='4' ) and exists( select 1 from abc where number='6' ) and exists( select 1 from abc where number='13' ) >>>More