I have this SQL statement and I need to change the WHERE clause in the SQL
statement to its java equivatlent. Something like this:
@command1, @username2 ,@receiver is input parameter
WHERE
(
[Test]=2
AND
(command LIKE @command1 AND Username2 LIKE @Username2)
AND
(lac is null or lac=@receiver)
)
Java equivatlent:
if( (Test == 2) & (command LIKE @command1 & username2 LIKE @username2) &
(lac is null | lac== receiver)
...........
But I have trouble with translating LIKE, is null and lac=@reciver
statement to its java equivatlent. Something like this:
@command1, @username2 ,@receiver is input parameter
WHERE
(
[Test]=2
AND
(command LIKE @command1 AND Username2 LIKE @Username2)
AND
(lac is null or lac=@receiver)
)
Java equivatlent:
if( (Test == 2) & (command LIKE @command1 & username2 LIKE @username2) &
(lac is null | lac== receiver)
...........
But I have trouble with translating LIKE, is null and lac=@reciver
Comment