insert into from where order by ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mather
    New Member
    • Feb 2007
    • 3

    insert into from where order by ?

    i am geting error for the following command from vb6
    insert into table1 from select * from table2 where <condition> order by field1
  • rectoverso
    New Member
    • Mar 2007
    • 16

    #2
    Originally posted by mather
    i am geting error for the following command from vb6
    insert into table1 from select * from table2 where <condition> order by field1
    try this

    insert into table1 using (select * from table2 where <condition> order by field1 )

    Comment

    • vijaydiwakar
      Contributor
      • Feb 2007
      • 579

      #3
      Originally posted by mather
      i am geting error for the following command from vb6
      insert into table1 from select * from table2 where <condition> order by field1
      what's d error?

      Comment

      • Dave44
        New Member
        • Feb 2007
        • 153

        #4
        Originally posted by vijaydiwakar
        what's d error?
        looking at the statement he provided it looks like the "from" keyword is what is wrong.

        Comment

        Working...