If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > Run dbexprot for only 1 table

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-18-05, 12:34
annabz annabz is offline
Registered User
 
Join Date: Dec 2004
Posts: 5
Run dbexprot for only 1 table

Hello,

Does anyone know the syntax of dbexport command if I need to unload only 1 table from Informix database? I could not find it anywhere.

Appreciate the help very much -- Anna
Reply With Quote
  #2 (permalink)  
Old 02-18-05, 12:53
artemka artemka is offline
Registered User
 
Join Date: May 2004
Location: New York
Posts: 248
dbexport unloads data in the pipe delimited format.
you can do dbschema -d "dbname" -t "tabname" -ss > "tabname.sql"

and the run

dbaccess "dbname" <<!!
unload to "tabname.unl"
select * from "tabname"
!!


that way you will have the schema and the unload file.
if you need to do this for multipule tables you can script this.

Cheers
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On