473,659 Members | 2,651 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

mysql delimiter

The example uses the mysql client delimiter command to change the statement
delimiter from ; to // while the procedure is being defined. This allows
the ; delimiter used in the procedure body to be passed through to the
server rather than being interpreted by mysql itself.

hi -

i am using cli in interactive mode.
i tried changing the delimiter to // but everytime i type a ;
i get an error. what could i be doing wrong?
i just want to create a procedure.

thanks,
jim
Jul 17 '05 #1
5 7031
oops...that is only for mysql 5.
hmm... i wanted to wrap some deletes in a begin end type transaction.
i will have to look around to see how to go about it.

thanks,
later
Jul 17 '05 #2
i think this works except autocommit is a problem.
who said anything about front base? i need to set this
value from somewhere besides the mysql cli (like in php)
php 5 seems to make it easy. anyone know how to do it before
php 5?

i am using myISAM mysql 4.0.13
i need to use InnoDB i think.
so i can autocommit all i want with the wrong table type
and it wont do me any good.

i will change my table types while i am waiting
for a response (i hope)
thanks.

later,
jim

<?php

mysql_pconnect( "localhost","ro ot","mynewpassw ord");
mysql_select_db ("mysite");
$res=mysql_quer y("BEGIN WORK");
mysql_query("de lete from page where page_id<10");
mysql_query("de lete from word where page_id<10");
mysql_query("de lete from occurrence where page_id<10");
$result=mysql_q uery("COMMIT");
print($res);
print ($result);

?>
Jul 17 '05 #3
"j-marvin" <cu******@servi ce.boy> wrote in
news:Xn******** *************** ***@24.24.2.165 :
i think this works except autocommit is a problem.
who said anything about front base? i need to set this
value from somewhere besides the mysql cli (like in php)
php 5 seems to make it easy. anyone know how to do it before
php 5?

i am using myISAM mysql 4.0.13
i need to use InnoDB i think.
so i can autocommit all i want with the wrong table type
and it wont do me any good.

i will change my table types while i am waiting
for a response (i hope)
thanks.

later,
jim

oh...
i am going to use start transaction and commit.
that is all i need. there is no autocommit setting i need to turn
off or on in php with mysql. using start transaction and commit do it for
me.

thanks
Jul 17 '05 #4
"j-marvin" <cu******@servi ce.boy> wrote in message
news:Xn******** *************** ***@24.24.2.167 ...
"j-marvin" <cu******@servi ce.boy> wrote in
news:Xn******** *************** ***@24.24.2.165 :
i think this works except autocommit is a problem.
who said anything about front base? i need to set this
value from somewhere besides the mysql cli (like in php)
php 5 seems to make it easy. anyone know how to do it before
php 5?

i am using myISAM mysql 4.0.13
i need to use InnoDB i think.
so i can autocommit all i want with the wrong table type
and it wont do me any good.

i will change my table types while i am waiting
for a response (i hope)
thanks.

later,
jim

oh...
i am going to use start transaction and commit.
that is all i need. there is no autocommit setting i need to turn
off or on in php with mysql. using start transaction and commit do it for
me.

thanks


Do you always talk to yourself out loud?
Jul 17 '05 #5
"kingofkolt " <je**********@c omcast.net> wrote in
news:DmfUc.1372 09$8_6.7889@att bi_s04:
"j-marvin" <cu******@servi ce.boy> wrote in message
news:Xn******** *************** ***@24.24.2.167 ...
"j-marvin" <cu******@servi ce.boy> wrote in
news:Xn******** *************** ***@24.24.2.165 :
> i think this works except autocommit is a problem.
> who said anything about front base? i need to set this


thanks


Do you always talk to yourself out loud?


sometimes i am the only person who will talk to myself.
Jul 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
1871
by: elyob | last post by:
Hi, I'm looking at storing snippets of details in MySQL about what credit cards a business excepts. Rather than have a whole column for Visa, another for Amex etc ... I am looking at having a column called payment types and inserting multiple codes ... e.g. ViAmBcCa Is this a good way of doing things? To me it'd be a lot cleaner and limit amount of Db work to be done. Is this a sensible way in your opinion? What's the best way of...
1
2771
by: James | last post by:
Hey everyone, I have a really obscure but impassable problem with a reasonably simple piece of php/PEAR DB/MySQL code When calling several stored procs the first call succeeds, but subsequent calls fail no matter which SP is called first it always works, and the rest fail... with: >>>
5
1830
by: coosa | last post by:
Hi all, I'm newbie in MySql and have been working for some time with MS Sql Server; so i'm familiar with stored procedures. However, i'm trying to create a simple stored procedure in MySql Query Browser (assuming there is a table called 'Categories') such as: Create Procedure sp_ShowAllCategories () BEGIN
0
3580
by: moira.shrimpton | last post by:
Hi, Heres a little test sp, I can't get it to use the @H variable in the select , what am i doing wrong?, been messing for days now :( The row caount always comes back as 0 , but if I just change the line "SELECT count(*) INTO s from test where url=@'H';" to use url='tony' for example or any other value it works as expected.
1
5005
by: objectmodelol | last post by:
I just switched from MS SQL 2000/2005 to MySql. What's wrong with this stored procedure: DELIMITER $$ DROP PROCEDURE IF EXISTS `listing`.`SaveUser` $$ CREATE DEFINER=`root`@`localhost` PROCEDURE `SaveUser`(Id INT, Username VARCHAR(50), EmailAddress VARCHAR(255), Salutation VARCHAR(10), FirstName VARCHAR(50), LastName VARCHAR(50), Password VARCHAR(50),
7
5840
by: eholz1 | last post by:
Hello PHP group, Could someone help me out? I have PHP 5.2, Apache 2.0, and MySQL 5.0 running on Linux (Redhat Fedora Core 6). All that works fine. I would like to be able to "call" a stored procedure from a PHP program, and run a stored procedure. I have yet to figure out the proper way to do this. My stored procedures work fine from the mysql command line using syntax: "call sp_min_record (101);"
1
14027
by: preejith | last post by:
Error Code : 1329, No data - zero rows fetched, selected, or processed. MYSQL I am getting the following error while running a stored procedure in mysql5.0 Error Code : 1329 No data - zero rows fetched, selected, or processed. I have an stored procedure SP1 which calls stored procedure SP2 and SP2 calls a function F1. I have run this script from .bat file.
1
9569
ssnaik84
by: ssnaik84 | last post by:
Hi Guys, Last year I got a chance to work with R&D team, which was working on DB scripts conversion.. Though there is migration tool available, it converts only tables and constraints.. Rest of things (stored procedures, functions).. we have to manually edit. That time, we face some interesting challenges.. I failed to document all of them, but whatever I can share with u.. I will try.. :) ...
2
9792
by: clintolin | last post by:
My environment php 5.3.0 MySQL Server version: 5.1.37 MySQL client version: 5.1.37 xampp for windows 1.7.2 Windows 7 The Error message I get is this: Array ( => HY000 => 1414 => OUT or INOUT argument 3 for routine cmcs.spLogin is not a variable or NEW pseudo-variable in BEFORE trigger )
0
8428
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8851
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8751
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7360
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5650
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4338
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2757
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1982
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1739
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.