[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Dynamic query
- Subject: Dynamic query
- From: Alka Srivastava <asrivastava@KPMG.COM>
- Date: Fri, 1 Sep 2000 11:13:46 -0600
Let $AdjTypeCd = 'W-LATE'
1. Let $Where_Clause_type_cd ='AND D.ADJ_TYPE_CD = ' ||
$AdjTypeCd
2. Let $Where_Clause_Opr_Class = 'AND G.OPRCLASS NOT IN
($test1, $test2)'
This where clause is giving me error.
If I write it like this, it works fine.
Let $Where_Clause ='AND D.ADJ_TYPE_CD = ''TEST'''
Let $Where_Clause = 'AND G.OPRCLASS NOT IN ''TEST'''
What I am missing in the first two syntax.
Any help.
Thanks,
Alka