Hi Buddies/Experts,
I am writing a BODS Script and I have to include some SQL statements in it.
I want to extract multiple columns from a SQL Table and assign those to multiple variables defined locally in BODS Job.
I can issue one cast sql statement for each column that I want to retrieve . That will work. But all these columns are from same row. So if I issue one separate sql statements for each column then it will impact the performance.
I tried below options to retrieve multiple columns from sql in BODS script. but both options did not work.
sql(‘db’,select name into {$Lname},state into {$Lstate} from table where condition);
sql(‘db’,select {$Lname}=name,{$Lstate}=state from table where condition);
Any help would be appreciated.
Mike.ETLSDS (BOB member since 2018-06-01)