Re: need help with isql and informix
Posted in 1996
Tony, You could create a temp table, use the I-SQL "load from..." statement to load this temp table, and then do your update using normal SQL. Just out of curiosity, what flavor of SQL let you use flat files? David ---------------------- Forwarded by David Coburn/ISG/WVUS/WorldVision on 12/19/96 09:50 AM --------------------------- (Embedded image moved tony @ toners.com at WVUS-SMTP to file: 12/19/96 08:27 AM PIC001.PCX) To: informix-list @ rmy.emory.edu at WVUS-SMTP@CCMAIL cc: (bcc: David Coburn/ISG/WVUS/WorldVision) Subject: need help with isql and informix I'm using a informix database to store some product data on a isp's server.. I am getting very little help from their support team.. can someone help with this problem.. I need to update records that have changed since I loaded the database. I have a flat file that contains about 10 records that are delimited by a pipe '|' and I want to use it to either update or add the record if the record is not there. I have looked through the manuals I have on informix and tryed a few things with isql, none have worked.. it appears that update command does not have a syntax to read a file and that load does not do a modify of a record.. In other sql's I have used a load would either update an exsiting record or add if its not there.. How can I take my 10 records - using isql, and issue a load or update and have them inserted into the database? I have access to isql, perl and csh.. --- Tony Reeves AB6GA - areeves@goodnet.com, tony@toners.com - HF: 14.242Mhz or 28.480Mhz Environmental Laser - Quality Laser/Copier Toner Cartridge re-manufacture Homepage: http://www.toners.com The following is an attached File item from cc:Mail. It contains information that had to be encoded to ensure successful transmission through various mail systems. To decode the file use the UUDECODE program. --------------------------------- Cut Here --------------------------------- begin 644 PIC001.PCX 12/19/96 09:56 AM M"@4!"`````!H`"P````````````````````````````````````````````` M```````````````````````````!:0`!```````````````````````````` M``````````````````````````````````````````````````#U$]L3S1/' M$\\,3PA/U$]L3S1/'$\\,3PA/U$]L3S1/'$\\,3PA/U$]L3S1/'$\\,3PA/U$]L3 MS1/'$\\,3PA/U$]L3S1/'$\\,3PA/U$]L3S1/'$\\,3PA/U$]L3S1/'$\\,3PA/U M$]L3S1/'$\\,3PA/P$PS(!@S8$\\P3QA/#$\\(3[A/.!M<3S!/&$\\,3$^P3P@;" M!P;"$@;"$@;"$L4&UA/+$\\83PQ,3ZA,,P@8'P@+"`P(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`"``("` MP,#`P-S`ILKP__OPH*"D@("`_P```/\\`__\\```#__P#_`/______````@``` M`(``@(````"`@`"``("`P,#`P-S`ILKP__OPH*"D@("`_P```/\\`__\\```#_ M_P#_`/______````@````(``@(````"`@`"``("`P,#`P-S`ILKP__OPH*"D M@("`_P```/\\`__\\```#__P#_`/______````@````(``@(````"`@`"``("` MP,#`P-S`ILKP__OPH*"D@("`_P```/\\`__\\```#__P#_`/______````@``` M`(``@(````"`@`"``("`P,#`P-S`ILKP__OPH*"D@("`_P```/\\`__\\```#_ M_P#_`/______````@````(``@(````"`@`"``("`P,#`P-S`ILKP__OPH*"D M@("`_P```/\\`__\\```#__P#_`/______````@````(``@(````"`@`"``("` MP,#`P-S`ILKP__OPH*"D@("`_P```/\\`__\\```#__P#_`/______````@``` M`(``@(````"`@`"``("`P,#`P-S`ILKP__OPH*"D@("`_P```/\\`__\\```#_ M_P#_`/______````@````(``@(````"`@`"``("`P,#`P-S`ILKP__OPH*"D M@("`_P```/\\`__\\```#__P#_`/______````@````(``@(````"`@`"``("` MP,#`P-S`ILKP__OPH*"D@("`_P```/\\`__\\```#__P#_`/______````@``` J`(``@(````"`@`"`__OPH*"D@("`_P```/\\`__\\```#__P#_`/______ end