is type keyword

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kkshansid
    New Member
    • Oct 2008
    • 232

    is type keyword

    Code:
    select distinct(code) from school where type='main'
    where type is column
    return 0 row
    but there are many rows where type column has value main
    Last edited by Atli; Jan 14 '10, 11:35 AM. Reason: Added [code] tags.
  • Atli
    Recognized Expert Expert
    • Nov 2006
    • 5062

    #2
    Are you sure there are no spaces, or other trash-characters, surrounding either you search keyword or the data in the database. (You can use trim() to remove such characters from your variables)

    What exactly is the code field?
    Could you show us a the data you have in your database? (A couple of rows would be fine.)

    Comment

    • dgreenhouse
      Recognized Expert Contributor
      • May 2008
      • 250

      #3
      In answer to your question... 'type' is not a keyword (Reserved Word).

      Comment

      Working...