Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8372

Re: Incorrect syntax near')'

$
0
0

actually the entrie code looks like this: 

SELECT auth.c_name,  

         auth.auth  ,

substring( auth.auth, 1 ,1) AS COLUMN_0 ,

( select "Fn" from key5932 where "keyyy" ='0' ) as index0,

substring( auth.auth, 2 ,1) AS COLUMN_1 ,

( select "Fn" from key5932 where "keyyy" ='1' ) as index1,

substring( auth.auth, 3 ,1) AS COLUMN_2 ,

( select "Fn" from key5932 where "keyyy" ='2' ) as index2,

substring( auth.auth, 4 ,1) AS COLUMN_3 ,

( select "Fn" from key5932 where "keyyy" ='3' ) as index3,

substring( auth.auth, 5 ,1) AS COLUMN_4 ,

( select "Fn" from key5932 where "keyyy" ='4') as index4,

substring( auth.auth, 6 ,1) AS COLUMN_5 ,

( select "Fn" from key5932 where "keyyy" ='5' ) as index5,

substring( auth.auth, 7 ,1) AS COLUMN_6 ,

( select "Fn" from key5932 where "keyyy" ='6' ) as index6,

substring( auth.auth, 8 ,1) AS COLUMN_7 ,

( select "Fn" from key5932 where "keyyy" ='7') as index7,

substring( auth.auth, 9 ,1) AS COLUMN_8 ,

( select "Fn" from key5932 where "keyyy" ='8' ) as index8,

substring( auth.auth, 10 ,1) AS COLUMN_9 ,

( select "Fn" from key5932 where "keyyy" ='9' ) as index9,

substring( auth.auth, 10 ,1) AS COLUMN_10 ,

( select "Fn" from key5932 where "keyyy" ='10' ) as index10,

substring( auth.auth, 12 ,1) AS COLUMN_11 ,

( select "Fn" from key5932 where "keyyy" ='11' ) as index11,

substring( auth.auth, 13 ,1) AS COLUMN_12 ,

( select "Fn" from key5932 where "keyyy" ='12' ) as index12,

substring( auth.auth, 14 ,1) AS COLUMN_13 ,

( select "Fn" from key5932 where "keyyy" ='13') as index13,

substring( auth.auth, 15 ,1) AS COLUMN_14 ,

( select "Fn" from key5932 where "keyyy" ='14' ) as index14,

substring( auth.auth, 16 ,1) AS COLUMN_15 ,

( select "Fn" from key5932 where "keyyy" ='15' ) as index15,

substring( auth.auth, 17 ,1) AS COLUMN_16 ,

( select "Fn" from key5932 where "keyyy" ='16' ) as index16,

substring( auth.auth, 18 ,1) AS COLUMN_17 ,

( select "Fn" from key5932 where "keyyy" ='17' ) as index17,

substring( auth.auth, 19 ,1) AS COLUMN_18 ,

( select "Fn" from key5932 where "keyyy" ='18' ) as index18,

substring( auth.auth, 20 ,1) AS COLUMN_19 ,

( select "Fn" from key5932 where "keyyy" ='19' ) as index19,

substring( auth.auth, 21 ,1) AS COLUMN_20 ,

( select "Fn" from key5932 where "keyyy" ='20' ) as index20,

substring( auth.auth, 22 ,1) AS COLUMN_21 ,

( select "Fn" from key5932 where "keyyy" ='21') as index21,

substring( auth.auth, 23 ,1) AS COLUMN_22 ,

( select "Fn" from key5932 where "keyyy" ='22' ) as index22,

substring( auth.auth, 24 ,1) AS COLUMN_23 ,

( select "Fn" from key5932 where "keyyy" ='23' ) as index23,

substring( auth.auth, 25 ,1) AS COLUMN_24 ,

( select "Fn" from key5932 where "keyyy" ='24') as index24,

substring( auth.auth, 26 ,1) AS COLUMN_25 ,

( select "Fn" from key5932 where "keyyy" ='25') as index25,

substring( auth.auth, 27 ,1) AS COLUMN_26 ,

( select "Fn" from key5932 where "keyyy" ='26' ) as index26,

substring( auth.auth, 28 ,1) AS COLUMN_27 ,

( select "Fn" from key5932 where "keyyy" ='27' ) as index27,

substring( auth.auth, 29 ,1) AS COLUMN_28 ,

( select "Fn" from key5932 where "keyyy" ='28' ) as index28,

substring( auth.auth, 30 ,1) AS COLUMN_29 ,

( select "Fn" from key5932 where "keyyy" ='29') as index29,

substring( auth.auth, 31 ,1) AS COLUMN_30 ,

( select "Fn" from key5932 where "keyyy" ='30' ) as index30,

substring( auth.auth, 32 ,1) AS COLUMN_31 ,

( select "Fn" from key5932 where "keyyy" ='31' ) as index31,

substring( auth.auth, 33 ,1) AS COLUMN_32 ,

( select "Fn" from key5932 where "keyyy" ='32' ) as index32,

substring( auth.auth, 34 ,1) AS COLUMN_33 ,

( select "Fn" from key5932 where "keyyy" ='33' ) as index33,

substring( auth.auth, 35 ,1) AS COLUMN_34 ,

( select "Fn" from key5932 where "keyyy" ='34' ) as index34,

substring( auth.auth, 36 ,1) AS COLUMN_35 ,

( select "Fn" from key5932 where "keyyy" ='35' ) as index35,

substring( auth.auth, 37 ,1) AS COLUMN_36 ,

( select "Fn" from key5932 where "keyyy" ='36' ) as index36,

substring( auth.auth, 38 ,1) AS COLUMN_37 ,

( select "Fn" from key5932 where "keyyy" ='37' ) as index37,

substring( auth.auth, 39 ,1) AS COLUMN_38 ,

( select "Fn" from key5932 where "keyyy" ='38' ) as index38,

substring( auth.auth, 40 ,1) AS COLUMN_39 ,

( select "Fn" from key5932 where "keyyy" ='39' ) as index39,

substring( auth.auth, 41 ,1) AS COLUMN_40 ,

( select "Fn" from key5932 where "keyyy" ='40' ) as index40,

substring( auth.auth, 42 ,1) AS COLUMN_41 ,

( select "Fn" from key5932 where "keyyy" ='41' ) as index41,

substring( auth.auth, 43 ,1) AS COLUMN_42 ,

( select "Fn" from key5932 where "keyyy" ='42' ) as index42,

substring( auth.auth, 44 ,1) AS COLUMN_43 ,

( select "Fn" from key5932 where "keyyy" ='43' ) as index43,

substring( auth.auth, 45 ,1) AS COLUMN_44 ,

( select "Fn" from key5932 where "keyyy" ='44') as index44,

substring( auth.auth, 46 ,1) AS COLUMN_45 ,

( select "Fn" from key5932 where "keyyy" ='45' ) as index45,

substring( auth.auth, 47 ,1) AS COLUMN_46 ,

( select "Fn" from key5932 where "keyyy" ='46' ) as index46,

substring( auth.auth, 48 ,1) AS COLUMN_47 ,

( select "Fn" from key5932 where "keyyy" ='47' ) as index47,

substring( auth.auth, 49 ,1) AS COLUMN_48 ,

( select "Fn" from key5932 where "keyyy" ='48' ) as index48,

substring( auth.auth, 50 ,1) AS COLUMN_49 ,

( select "Fn" from key5932 where "keyyy" ='49' ) as index49,

substring( auth.auth, 51 ,1) AS COLUMN_50 ,

( select "Fn" from key5932 where "keyyy" ='50' ) as index50,

substring( auth.auth, 52 ,1) AS COLUMN_51 ,

( select "Fn" from key5932 where "keyyy" ='51' ) as index51,

substring( auth.auth, 53 ,1) AS COLUMN_52 ,

( select "Fn" from key5932 where "keyyy" ='52' ) as index52,

substring( auth.auth, 54 ,1) AS COLUMN_53 ,

( select "Fn" from key5932 where "keyyy" ='53' ) as index53,

substring( auth.auth, 55 ,1) AS COLUMN_54 ,

( select "Fn" from key5932 where "keyyy" ='54') as index54,

substring( auth.auth, 56 ,1) AS COLUMN_55 ,

( select "Fn" from key5932 where "keyyy" ='55' ) as index55,

substring( auth.auth, 57 ,1) AS COLUMN_56 ,

( select "Fn" from key5932 where "keyyy" ='56' ) as index56,

substring( auth.auth, 58 ,1) AS COLUMN_57 ,

( select "Fn" from key5932 where "keyyy" ='57' ) as index57,

substring( auth.auth, 59 ,1) AS COLUMN_58 ,

( select "Fn" from key5932 where "keyyy" ='58' ) as index58,

substring( auth.auth, 60 ,1) AS COLUMN_59 ,

( select "Fn" from key5932 where "keyyy" ='59' ) as index59,

substring( auth.auth, 61 ,1) AS COLUMN_60 ,

( select "Fn" from key5932 where "keyyy" ='60' ) as index60,

substring( auth.auth, 62 ,1) AS COLUMN_61 ,

( select "Fn" from key5932 where "keyyy" ='61' ) as index61,

substring( auth.auth, 63 ,1) AS COLUMN_62 ,

( select "Fn" from key5932 where "keyyy" ='62' ) as index62,

substring( auth.auth, 64 ,1) AS COLUMN_63 ,

( select "Fn" from key5932 where "keyyy" ='63' ) as index63,

substring( auth.auth, 65 ,1) AS COLUMN_64 ,

( select "Fn" from key5932 where "keyyy" ='64' ) as index64,

substring( auth.auth, 66 ,1) AS COLUMN_65 ,

( select "Fn" from key5932 where "keyyy" ='65' ) as index65,

substring( auth.auth, 67 ,1) AS COLUMN_66 ,

( select "Fn" from key5932 where "keyyy" ='66' ) as index66

FROM auth  

where auth.c_name = :a_name


Viewing all articles
Browse latest Browse all 8372

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>