Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old August 8th, 2006, 04:05 AM
tns
Guest
 
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 */;;

  #2  
Old August 8th, 2006, 08:35 AM
Armando Padilla
Guest
 
Posts: n/a
Default Re: Errors?

tns wrote:
Quote:
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.

  #3  
Old August 8th, 2006, 01:35 PM
tns
Guest
 
Posts: n/a
Default Re: Errors?


Armando Padilla wrote:
Quote:
tns wrote:
Quote:
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?

  #4  
Old August 8th, 2006, 04:55 PM
Miguel Cruz
Guest
 
Posts: n/a
Default Re: Errors?

"tns" <cbdiets@hotmail.comwrote:
Quote:
Armando Padilla wrote:
Quote:
tns wrote:
Quote:
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
  #5  
Old August 9th, 2006, 12:35 AM
Jerry Stuckle
Guest
 
Posts: n/a
Default Re: Errors?

tns wrote:
Quote:
Armando Padilla wrote:
>
Quote:
>>tns wrote:
>>
Quote:
>>>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
==================
 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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

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

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles