if statement - IF entry in MySQL exists do -


i trying query database under condition there session active. want solve if-statement , looked through these pages here nice solution, nothing works out me.

my current approach one:

if (select exists (select endtime                    session                    userid = 0                    , sessionid = 1                    , endtime = -1)) begin //do stuff here end 

maybe can me out here?

i running mariadb mysql.

cheers & thanks.


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -