CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Threaded View

  1. #2
    Join Date
    Aug 2003
    Location
    Sydney, Australia
    Posts
    1,901

    Re: SQL to copy from one table to another

    Be careful with the ID field

    If it is an autoallocated field (in both tables) then your statement wont work because the receiving table will want to allocate the ID automatically

    But if in the receiving table the ID field is NOT autoallocated, and is not a unique index field, then your statement should work

    ...... FROM TABLE1 WHERE name = :name
    may need to be

    ...... FROM TABLE1 WHERE name = '" & name & "'"
    (But then, I know nothing about Oracle)
    Last edited by George1111; March 25th, 2009 at 09:13 PM.

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured