Results 1 to 5 of 5

Thread: Copying a table.

  1. #1

    Copying a table.

    I have to do this on a Winbox using ODBC. I am using PERL and DBI. How would I go about copying a table. I'm sure this is easy but I am not seeing it. I need to convert the data from the ODBC source to a dbf formated file. I know I would use XBASE and ODBC but what would the code be like. Anyy suggestion on which functions to use?

    Any help would be much appreciated.

    Thanks
    Jamin

  2. #2

    Re:Copying a table.

    Did you ever figure it out?

  3. #3

    Re:Copying a table.

    In Oracle you can create a table based on another table... not sure which DB you're using... you can also SELECT the entire table and use Perl to build an SQL statement to create a new table and insert everything... should be pretty easy

  4. #4

    Re:Copying a table.

    You can select from table A and at the same time insert the data into table B. This can be a temp table or not. Either way. Or... bcp the data out from tab;le A then bcp the data into table B.

    What are you trying to do? Do you need the sql?
    Post some more information.

  5. #5

    Re:Copying a table.

    create table foo select * from bar;

    i don't know if that will help you or not since you're using two different databases. do you have do DBI objects or what?

Similar Threads

  1. Excel VLOOKUP Function
    By swatsp0p in forum Windows - General Topics
    Replies: 1
    Last Post: 01-26-2005, 05:21 PM
  2. Setting up a Routing table in ClarkConnect 2.2 (RedHat 9)
    By wetmetalthong in forum Linux - Hardware, Networking & Security
    Replies: 0
    Last Post: 01-19-2005, 12:40 AM
  3. SQL Server 2k win CE edition FAQ
    By regix in forum Windows - General Topics
    Replies: 0
    Last Post: 01-01-2005, 01:59 AM
  4. MySQL copy table (or terminal options)
    By vwgtiturbo in forum Linux - Software, Applications & Programming
    Replies: 4
    Last Post: 11-03-2003, 05:07 PM
  5. Data in MySQL table in several array's
    By xin in forum Linux - Software, Applications & Programming
    Replies: 4
    Last Post: 07-22-2002, 08:13 PM

Bookmarks

Posting Permissions

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