hi all,
i had a query and i need to substr that query.
@s ="select Emp_Id,First_Name,Last_Name,Gender,Mobile_No,Email_id,Blood_Group from Employee where Emp_ID like '%", empid ,"%' and
my query is this
now i used substr
set str1 = (SUBSTR(@s,-4));
SO in str1 i am getting values as 'and'...Now i dont need and value i need remaining one i;e
select Emp_Id,First_Name,Last_Name,Gender,Mobile_No,Email_id,Blood_Group from Employee where Emp_ID like '%", empid ,"%'
how to get that in str1... can any one help me..