Can anybody please help me with this?  Some queries I try in ASP don't
return any result!  Executing them in the EMS MySQL Manager show that
they all should return something...

<%

Set con = Server.CreateObject ("ADODB.Connection")
con.Open ("Driver=MySQL;SERVER=peter;DATABASE=ppm3;UID=root")

set rst = con.Execute ("SELECT ID FROM Items")
Response.Write (rst.EOF & "<br>")
'                                                         --> False

set rst = con.Execute ("SELECT IFNULL('a','') FROM Items")
Response.Write (rst.EOF & "<br>")
'                                                         --> False

set rst = con.Execute ("SELECT IFNULL(ID,'') FROM Items")
Response.Write (rst.EOF & "<br>")
'                                                         --> True
?!?!?!?!

set rst = con.Execute ("SELECT IF(ID,ID,'') FROM Items")
Response.Write (rst.EOF & "<br>")
'                                                         --> False

set rst = con.Execute ("SELECT COALESCE(ID,'') FROM Items")
Response.Write (rst.EOF & "<br>")
'                                                         --> True
?!?!?!?!

set rst = con.Execute ("SELECT CONCAT('1','2') AS Result")
Response.Write (rst.EOF & "<br>")
'                                                         --> False

set rst = con.Execute ("SELECT 1+1 AS Result")
Response.Write (rst.EOF & "<br>")
'                                                         --> True
?!?!?!?!

%>

Please help!  I'm new to MySQL, and I'm beginning to fear that it was
not a good choice...

Regards,
        Peter Bremer

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to