Her's the code in which i want to select 2 records from the table using logical and condition && and then update the values accordingly if it satisfies both of the conditions. But it looks like i am writing something wrong. Kindly check this out.
class DisplayClass
{
/// <summary>
/// Runs the class with the specified arguments.
/// </summary>
/// <param name = "_args">The specified arguments.</param>
public static void main(Args _args)
{
PTable pt;
ttsbegin;
select forupdate pt
where pt.P_ID=="P101" &&
pt.P_ID=="P103";
{
pt.PStatus = "Sold";
pt.update();
ttscommit;
}
}
}
*This post is locked for comments