Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: help me on procedure syntax error...

Started 1 month, 1 week ago by yassar
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 ...
Site: dBforums - Database Support Community  dBforums - Database Support Community - site profile
Forum: Informix  Informix - forum profile
Total authors: 55 authors
Total thread posts: 7 posts
Thread activity: 31 new post during last week
Domain info for: dbforums.com

Other posts in this thread:

ceinma ceinma is offline Registered User replied 3 months, 1 week ago
Use SET EXPLAIN to debug: IBM Informix Dynamic Server v11.50 Information Center

petrybr replied 3 months, 1 week ago
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 ...

r937 replied 3 months, 1 week ago
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?

Stealth_DBA replied 3 months, 1 week ago
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 ...

JarlH replied 3 months, 1 week ago
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

petrybr replied 3 months, 1 week ago
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!

dav1mo replied 3 months, 1 week ago
how about select distinct col1,col2,col3 from your_table and then load that data? Dave

NickJ 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!

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!

Jennalakymera replied 3 months, 1 week ago
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...

 

Top contributing authors

Name
Posts
ceinma
31
user's latest post:
informix tools
Published (2009-12-09 06:55:00)
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,...
pbangalore
10
user's latest post:
Issues with Cursor in informix...
Published (2009-11-30 10:12:00)
Can you please tell me how to use foreach in this example and also how do i grant &amp; execute this procedure
Tyveleyn
9
user's latest post:
loop script
Published (2009-12-10 18:30:00)
Code: EXIT=1 while [ $EXIT -ne 0 ];do scp ... EXIT=$? done Regards, Hans
sobnc
8
user's latest post:
informix and aix script
Published (2009-12-11 06:02:00)
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 &quot;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
georgipa
6
user's latest post:
install informix in cluster
Published (2009-11-27 08:22:00)
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.
yassar
3
user's latest post:
help me on procedure syntax...
Published (2009-11-10 02:23:00)
please help me on this part of code...is there any problem for using a variable in skip...please help me.. WHILE i &lt; 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...
pmarvin
3
user's latest post:
Date math in SQL
Published (2009-12-03 09:54:00)
@ceinma Thanks for all your hard work and help! The &quot;magic way&quot; is definitely the direction I'll go. I suspect that it will be faster too.
bigcalm
3
user's latest post:
Informix change from another...
Published (2009-12-03 07:46:00)
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...
mashy
3
user's latest post:
dbaccess - unload to VS...
Published (2009-12-08 05:38:00)
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... &gt;&gt; Did you read the file generated by the dbaccess via output? I think the output on both occasions are in the same format...... ------------------------------------------------ &gt;&gt;looking your outputs, the UNLOAD is faster: &gt;&gt; Quote: 0. 0 1....
krmikwen
3
user's latest post:
Informix input on a daily basis
Published (2009-12-10 11:33:00)
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":

Related threads on other sites:

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