Problem retieving using 'Order' as a column name

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dimitriqueso3
    New Member
    • Nov 2007
    • 2

    Problem retieving using 'Order' as a column name

    I have the following problem: I have a database with a big list of animals and their taxonomy. but one column is named 'Order' and i have problems getting it into the sql query.

    It looks like this so far. the results should vary depending on the value in the url like .../display.asp?ord er=ordername

    Code:
    s-criteria="{Order} EQ {Order} +" s-sql="SELECT * FROM Taxonomy WHERE Order = '::Order::' ORDER BY Genus ASC"
    this works prefectly well when using 'Kingdom' instead of 'Order'. I am using FrontPage 2003 to do this, until now i never had any problems.

    Any ideas of what i am doing wrong?
  • shrimant
    New Member
    • Sep 2007
    • 48

    #2
    where ever you are using Order except for "Order by"enclose it with square braces like below:
    [Order]

    ORDER is a SQL KEYword...and that is where you are having problem

    Originally posted by dimitriqueso3
    I have the following problem: I have a database with a big list of animals and their taxonomy. but one column is named 'Order' and i have problems getting it into the sql query.

    It looks like this so far. the results should vary depending on the value in the url like .../display.asp?ord er=ordername

    Code:
    s-criteria="{Order} EQ {Order} +" s-sql="SELECT * FROM Taxonomy WHERE Order = '::Order::' ORDER BY Genus ASC"
    this works prefectly well when using 'Kingdom' instead of 'Order'. I am using FrontPage 2003 to do this, until now i never had any problems.

    Any ideas of what i am doing wrong?

    Comment

    • dimitriqueso3
      New Member
      • Nov 2007
      • 2

      #3
      works perfectly now!! thanks a lot!!

      Comment

      • jdk
        New Member
        • Apr 2008
        • 1

        #4
        Refer following url for taxonomy trees

        Comment

        Working...