please help me ..i got syntax error when creating the procedure given below....
------------------------------------------------ -------------------------------
CREATE PROCEDURE saveTableDetails1(var_table_name char(20),var_row_id char(20),var_action_occured char(20))
DEFINE var_pkid_name char(20);
select first 1 colname from syscolumns into var_pkid_name where tabid=(select ...
Hello,
I have two tables..
The first has a column whith data like this:
A99999
the second has a column whith data like this:
XXX0000/Zxy_ A99999 _1234
I want to select data from the second table using the first table, something like this:
select * from second where second.column like '%first.column%'
Any sugestion how can i do that?
I'm using ...
I don't know what functions Informix has available but I would look for one that can locate a character string in another string.
In DB2 it would be something like:
WHERE LOCATE(COL1, COL2) > 0
This would search for the value of COL1 (A99999) in COL2(XXX0000/Zxy_A99999_1234) and return the starting position of that value. A 0 indicates it is not found so "> 0" indicates it was in ...
ANSI/ISO SQL has POSITION:
<string position expression> ::=
POSITION <left paren> <string value expression>
IN <string value expression> <right paren>
e.g ... WHERE POSITION(COL1 IN COL2) > 0
Quote:
Originally Posted by r937
in ANSI SQL, you would use this --
Code:
WHERE second.column LIKE '%' || first.column || '%'
by the way, did you know we have an Informix forum?
tks man, worked!
Hi,
New to informix and still trying to get my head around the functions. Can anyone help me with writing a query to convert an integer of minutes to a format HH:MM?
In MSSQL I would use
select cast(@mins/60 as varchar(5)) + ':' + RIGHT('0' + cast(@mins%60 as varchar(2)), 2)
Put haven't a club how i'd do it in Informix. Can anyone help?
Thanks!
NickJ NickJ is offline Registered User replied 3 months, 1 week ago
Hi,
New to informix and still trying to get my head around the functions. Can anyone help me with writing a query to convert an integer of minutes to a format HH:MM?
In MSSQL I would use
select cast(@mins/60 as varchar(5)) + ':' + RIGHT('0' + cast(@mins%60 as varchar(2)), 2)
Put haven't a club how i'd do it in Informix. Can anyone help?
Thanks!
More information about used cubicles you always can find if push the picture:
http://allcleaningtools.com/button2.jpg
procurement management
investing information
corrosion control
property labels
symbol scanners
commodity broker
virus protection
website design
superchips
tampon in
toggle clamps
healthcare software
security services...
I never work with PLSQLDev and no have idea what it is capable... But, to tunning a SQL with Informix, you just need to enable the SET EXPLAIN command. Check the manual for more information: IBM Informix Dynamic Server v11.50 Information Center If you want a grafical environment, maybe the OpenAdminTool can help you,...
Dear Sir I pleased you to tell me which are crontab variables environment to be set up in my script so that i have right result. This is my crontab: 30 16 * * * /home/ope_for.sh "everyday at 4'30mn the crontab launch the script ope_for.sh which it self launch dbaccess my_database and execute the query ope_for_new Thanks
Hi ceinma, Thank you for you response, you can say me the link where is the information about installing informix in cluster, I have not experience installing informix in cluster. Thank you for you help.
please help me on this part of code...is there any problem for using a variable in skip...please help me.. WHILE i < var_column_length select skip i first 1 colname from syscolumns into var_column_name where tabid=(select tabid from systables where tabname=var_table_name) ; SELECT ar_pk_id ,ar_alert_id,ar_l_table_name,ar_l_field ,ar_r_table_name ,ar_r_field INTO var_ar_pk_id,var_ar_alert_id,var_ar_l_table_name,v...
Quote: Originally Posted by ceinma Can you easily export all data of each table to flat files, using delimiters? like this: col1|col2|col3|... if your answer is YES, just create the table in Informix database and use the LOAD command to load the flat file to Informix. use the search if wish.. You should be able to. I do this the other way around - moving a chunk of data from informix to mysql. Mysql.... SELECT a,b,a+b INTO OUTFILE...
Hi, thanks for your help on this. The output(s) I posted was a only a sub set of the reults. The end result will hold many more rows. In the millions I believe... >> Did you read the file generated by the dbaccess via output? I think the output on both occasions are in the same format...... ------------------------------------------------ >>looking your outputs, the UNLOAD is faster: >> Quote: 0. 0 1....
Hello, I have been looking for a data integration / transfer program able to help with Informix. I have had some advice but have not found the right software yet. The main feature is being able to migrate important quantities of contacts and data on a daily basis. The migration would be done manually. Thank you for your help!
Related threads on "dBforums - Database Support Community":
Thread profile page for "help me on procedure syntax error..." on http://www.dbforums.com.
This report page is a snippet summary view from a single thread "help me on procedure syntax error...", located on the Message Board at http://www.dbforums.com.
This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity