Unix Technical Forum

How to mimic PLSQL in mysql?

This is a discussion on How to mimic PLSQL in mysql? within the MySQL forums, part of the Database Server Software category; --> Hi, i try to run some benchmarks which i wrote for Oracle. I have to fill a table with ...


Go Back   Unix Technical Forum > Database Server Software > MySQL

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 11:30 AM
A. Dischner
 
Posts: n/a
Default How to mimic PLSQL in mysql?

Hi,

i try to run some benchmarks which i wrote for Oracle.

I have to fill a table with some data:

Oracle version is:

create table benchtest (
operator varchar (39),
line integer
text varchar2(2000)
)

begin
for i on 1..50000 loop
insert into benchtest(operator, line, text)
values(user, i, lpad(to_char(i), 200));
end loop;
end;

Any ideas?

kind regards,

Toni

--
Posen fuer Anfaenger: http://www.w-klch.med.uni-muenchen.de/dischner
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 11:30 AM
Captain Paralytic
 
Posts: n/a
Default Re: How to mimic PLSQL in mysql?

On 10 Dec, 11:48, "A. Dischner" <anton.disch...@med.uni-muenchen.de>
wrote:
> Hi,
>
> i try to run some benchmarks which i wrote for Oracle.
>
> I have to fill a table with some data:
>
> Oracle version is:
>
> create table benchtest (
> operator varchar (39),
> line integer
> text varchar2(2000)
> )
>
> begin
> for i on 1..50000 loop
> insert into benchtest(operator, line, text)
> values(user, i, lpad(to_char(i), 200));
> end loop;
> end;
>
> Any ideas?
>
> kind regards,
>
> Toni
>
> --
> Posen fuer Anfaenger:http://www.w-klch.med.uni-muenchen.de/dischner


http://datacharmer.blogspot.com/2006...s-quickly.html
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:58 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com