Errors?

This is a discussion on Errors? within the PHP Language forums, part of the PHP Programming Forums category; The following code produces an error when I try to run it under putty.exe (telent connection to mysql database). ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-08-2006
tns
 
Posts: n/a
Default Errors?

The following code produces an error when I try to run it under
putty.exe (telent connection to mysql database). Can anyone identify
the error in the code? The server is running PHP5.

Thanks

DELIMITER ;;
/*!50003 DROP PROCEDURE IF EXISTS `aaa` */;;
/*!50003 SET SESSION
SQL_MODE="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER" */;;
/*!50003 CREATE PROCEDURE `aaa`()
begin
declare iTest int;
set iTest = 5;
end */;;

Reply With Quote
  #2 (permalink)  
Old 08-08-2006
Armando Padilla
 
Posts: n/a
Default Re: Errors?

tns wrote:
> The following code produces an error when I try to run it under
> putty.exe (telent connection to mysql database). Can anyone identify
> the error in the code? The server is running PHP5.
>
> Thanks
>
> DELIMITER ;;
> /*!50003 DROP PROCEDURE IF EXISTS `aaa` */;;
> /*!50003 SET SESSION
> SQL_MODE="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER" */;;
> /*!50003 CREATE PROCEDURE `aaa`()
> begin
> declare iTest int;
> set iTest = 5;
> end */;;
>

This isnt php code (i think you know this already) its a stored
procedure in SQL.

Reply With Quote
  #3 (permalink)  
Old 08-08-2006
tns
 
Posts: n/a
Default Re: Errors?


Armando Padilla wrote:
> tns wrote:
> > The following code produces an error when I try to run it under
> > putty.exe (telent connection to mysql database). Can anyone identify
> > the error in the code? The server is running PHP5.
> >
> > Thanks
> >
> > DELIMITER ;;
> > /*!50003 DROP PROCEDURE IF EXISTS `aaa` */;;
> > /*!50003 SET SESSION
> > SQL_MODE="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER" */;;
> > /*!50003 CREATE PROCEDURE `aaa`()
> > begin
> > declare iTest int;
> > set iTest = 5;
> > end */;;
> >

> This isnt php code (i think you know this already) its a stored
> procedure in SQL.


Check that :). is there something obviously wrong with the syntax?

Reply With Quote
  #4 (permalink)  
Old 08-08-2006
Miguel Cruz
 
Posts: n/a
Default Re: Errors?

"tns" <cbdiets@hotmail.com> wrote:
> Armando Padilla wrote:
> > tns wrote:
> > > The following code produces an error when I try to run it under
> > > putty.exe (telent connection to mysql database). Can anyone identify
> > > the error in the code? The server is running PHP5.
> > >
> > > Thanks
> > >
> > > DELIMITER ;;
> > > /*!50003 DROP PROCEDURE IF EXISTS `aaa` */;;
> > > /*!50003 SET SESSION
> > > SQL_MODE="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER" */;;
> > > /*!50003 CREATE PROCEDURE `aaa`()
> > > begin
> > > declare iTest int;
> > > set iTest = 5;
> > > end */;;
> > >

> > This isnt php code (i think you know this already) its a stored
> > procedure in SQL.

>
> Check that :). is there something obviously wrong with the syntax?


You haven't told us which RDBMS you are using. In any case it's
off-topic, but as asked, the question is unanswerable.

miguel
--
Photos from 40 countries on 5 continents: http://travel.u.nu
Latest photos: Malaysia; Thailand; Singapore; Spain; Morocco
Airports of the world: http://airport.u.nu
Reply With Quote
  #5 (permalink)  
Old 08-09-2006
Jerry Stuckle
 
Posts: n/a
Default Re: Errors?

tns wrote:
> Armando Padilla wrote:
>
>>tns wrote:
>>
>>>The following code produces an error when I try to run it under
>>>putty.exe (telent connection to mysql database). Can anyone identify
>>>the error in the code? The server is running PHP5.
>>>
>>>Thanks
>>>
>>>DELIMITER ;;
>>>/*!50003 DROP PROCEDURE IF EXISTS `aaa` */;;
>>>/*!50003 SET SESSION
>>>SQL_MODE="STRICT_TRANS_TABLES,NO_AUTO_CREATE_US ER"*/;;
>>>/*!50003 CREATE PROCEDURE `aaa`()
>>>begin
>>> declare iTest int;
>>> set iTest = 5;
>>>end */;;
>>>

>>
>>This isnt php code (i think you know this already) its a stored
>>procedure in SQL.

>
>
> Check that :). is there something obviously wrong with the syntax?
>


You might try asking in a mysql newsgroup - such as comp.databases.mysql.

This newsgroup is for php questions.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:27 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0