I think that I have a conflict between my knowledge on SQL Server and MySQL.
When I run this query, I get an error from MySQL:
if selected (select * from tbl_admin) then select 'OK'; end if; The error message is:
[er] 1064 - There is an error in your SQL syntax; To use the nearest 'if' EXISTS (select * from tbl_admin), check the '1' manual related to your MySQL server version for the correct syntax - Choose '1' where 'exists' at line 1 '/' >
Please help me and tell me that I am wrong to write this question? such a fuss?
I have to do something if I have to do something in the tbl_admin table.
edit
To check whether any data in the table can be done or not:
Choose from where to double 'OK' (select * to tbl_admin);
Comments
Post a Comment