Syntax error in FROM clause

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default Syntax error in FROM clause

    We just installed CFMX on a Windows XP server. A datasource was defined using
    the Microsoft Access with Unicode. Certain queries run just fine, while the
    one at the bottom of this message produces the following error:

    Syntax error in FROM clause.

    SQL SELECT * FROM password WHERE uid = 'geoff AND pwd = 'jopevi2k'
    DATASOURCE dataSource1
    VENDORERRORCODE 3092
    SQLSTATE  

    Any suggestions?




    <CFQUERY NAME="getPwd" DATASOURCE="dataSource1" DBTYPE="ODBC">
    SELECT * FROM password WHERE uid = '#uid#' AND pwd = '#pwd#'
    </CFQUERY>

    jdeline Guest

  2. Similar Questions and Discussions

    1. I'm getting an Error in my WHERE clause - seems sosimple.
      Maybe because I'm new to Cold Fusion, but I'm getting the following error when running this query for a report... "Error Executing Database...
    2. ERROR 1054 (42S22): Unknown column 'sul._limit' in 'having clause'
      mysql> describe s1_user_limits; +--------+------------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default |...
    3. Simple WHERE clause in CFQUERY Has error executingdatabase query
      Hello, I'm sort of new to CF, but have been doing this enough that this is very frustrating! I'm using the standalone version of ColdFusion 6.1 on...
    4. error : syntax error at or near $1 for over select rows
      This is the error i am getting when calling select * from cas_reset_qi_changedate('CAS','2003-02-03' ERROR: syntax error at or near "$1" at...
    5. syntax error ???
      Hi, on login.php , we can see that : (...) $sql = "SELECT Login FROM logins WHERE Login='$fusername'"; $result = mysql_query($sql) or...
  3. #2

    Default Re: Syntax error in FROM clause

    password is a reserved word, you'll have to escape it by surrounding the
    reserved words with brackets e.g. [password]

    HTH

    --
    Tim Carley
    [url]www.recfusion.com[/url]
    [email]info@NOSPAMINGrecfusion.com[/email]
    Mountain Lover Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139