mirror of
https://github.com/kuhyx/WUT_Computer_Science.git
synced 2026-07-06 20:43:11 +02:00
basic data generation script
This commit is contained in:
parent
71d767afee
commit
64601215fc
12
SQL stuff/generate_lab-4.sql
Normal file
12
SQL stuff/generate_lab-4.sql
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
--truncate table competition;--
|
||||||
|
|
||||||
|
insert into competition
|
||||||
|
select
|
||||||
|
level +(select max(id) from competition) as id,
|
||||||
|
DBMS_RANDOM.value(10,100) as prize,
|
||||||
|
dbms_random.string('A', 6) as country,
|
||||||
|
DBMS_RANDOM.value(1,5) as reputation
|
||||||
|
--into competionTemp
|
||||||
|
from dual
|
||||||
|
connect by level <=10
|
||||||
|
--generate 10 records
|
||||||
Loading…
Reference in New Issue
Block a user