Click here to Skip to main content
15,888,590 members
Home / Discussions / Database
   

Database

 
AnswerRe: a mistake with the "Like" statement..help!.. Pin
DerekFL12-Sep-07 8:19
DerekFL12-Sep-07 8:19 
QuestionProblem with LDF files ( database log file ) Pin
Developer6119-Sep-07 1:45
Developer6119-Sep-07 1:45 
AnswerRe: Problem with LDF files ( database log file ) Pin
Frank Kerrigan10-Sep-07 9:33
Frank Kerrigan10-Sep-07 9:33 
AnswerRe: Problem with LDF files ( database log file ) Pin
rohitsrivastava10-Sep-07 19:54
rohitsrivastava10-Sep-07 19:54 
QuestionHow to find tree path in a table with parent cod Pin
sepel9-Sep-07 1:39
sepel9-Sep-07 1:39 
AnswerRe: How to find tree path in a table with parent cod Pin
Chetan Patel9-Sep-07 21:25
Chetan Patel9-Sep-07 21:25 
QuestionHow to implement Transaction in a MySql Stored Procedure with Cursor ? Pin
fearless stallion8-Sep-07 19:16
fearless stallion8-Sep-07 19:16 
AnswerRe: How to implement Transaction in a MySql Stored Procedure with Cursor ? Pin
DLM@TD14-Sep-07 12:00
DLM@TD14-Sep-07 12:00 
Hi,

the following stored procedure will work properly with transactions and cursors:

DELIMITER $$

DROP PROCEDURE IF EXISTS `testdb`.`TestCursorRollback` $$
CREATE PROCEDURE `testdb`.`TestCursorRollback` ()
BEGIN
declare n int;
DECLARE done INT DEFAULT 0;
declare cur1 cursor for select col1 from hotels.a;
DECLARE CONTINUE HANDLER FOR SQLSTATE '02000' SET done = 1;
start transaction;
open cur1;
repeat
fetch cur1 into n;
if not done then
insert into testdb.b(col1) values (n*10);
end if;
UNTIL done END REPEAT;
close cur1;
rollback; /* or commit*/

insert into testdb.b(col1) values(200);
END $$

DELIMITER ;


FREE cross database comparison and synchronization tools
DBTYP.NET - see database differences, for free (SQL Server, MySQL, Oracle)

GeneralRe: How to implement Transaction in a MySql Stored Procedure with Cursor ? Pin
fearless stallion19-Sep-07 16:39
fearless stallion19-Sep-07 16:39 
QuestionDatabase App Pin
gtkoder8-Sep-07 16:38
gtkoder8-Sep-07 16:38 
AnswerRe: Database App Pin
Chetan Patel9-Sep-07 21:27
Chetan Patel9-Sep-07 21:27 
Questionhow to back up the data base Pin
prasadbuddhika8-Sep-07 16:16
prasadbuddhika8-Sep-07 16:16 
AnswerRe: how to back up the data base Pin
John-ph8-Sep-07 20:09
John-ph8-Sep-07 20:09 
AnswerRe: how to back up the data base Pin
Rami Said Abd Alhalim8-Sep-07 20:14
Rami Said Abd Alhalim8-Sep-07 20:14 
AnswerRe: how to back up the data base Pin
Rami Said Abd Alhalim8-Sep-07 20:21
Rami Said Abd Alhalim8-Sep-07 20:21 
QuestionSQL issue Pin
Max++8-Sep-07 15:53
Max++8-Sep-07 15:53 
AnswerRe: SQL issue Pin
Paul Conrad8-Sep-07 16:31
professionalPaul Conrad8-Sep-07 16:31 
AnswerRe: SQL issue Pin
Frank Kerrigan10-Sep-07 9:27
Frank Kerrigan10-Sep-07 9:27 
Questionjoin issue Pin
Tauseef A8-Sep-07 2:49
Tauseef A8-Sep-07 2:49 
AnswerRe: join issue Pin
sudhir paliwal10-Sep-07 6:37
sudhir paliwal10-Sep-07 6:37 
Questionenable paging in gridview programatically Pin
dinakatina7-Sep-07 12:26
dinakatina7-Sep-07 12:26 
AnswerRe: enable paging in gridview programatically Pin
DerekFL10-Sep-07 10:32
DerekFL10-Sep-07 10:32 
GeneralRe: enable paging in gridview programatically Pin
DerekFL12-Sep-07 5:00
DerekFL12-Sep-07 5:00 
GeneralRe: enable paging in gridview programatically Pin
dinakatina12-Sep-07 13:51
dinakatina12-Sep-07 13:51 
QuestionDrop Pin
TAREQ F ABUZUHRI7-Sep-07 10:38
TAREQ F ABUZUHRI7-Sep-07 10:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.