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.