This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Let's make a game! | |
name:My Totally Original Game | |
Resources | |
*pie | |
name:Pie | |
desc:A yucky pie. | |
Upgrades | |
*applePieRecipe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This test case shows the performance advantages of binding using the native SQL | |
data type, instead of passing in a string and converting it. | |
If the binds use DATE types, then Oracle can better understand the values, better | |
estimate the number of rows returned (the cardinality), and can choose better | |
execution plans. | |
Specifically, using native DATEs allows Oracle to use adaptive cursor sharing, so | |
that Oracle can create two plans for the same statement. The optimizer can use |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Purpose: Grant everything in a schema to a specific user or role | |
How to use: Replace &USER_OR_ROLE and &OWNER with the correct values and run the block. | |
*/ | |
begin | |
for grants in | |
( | |
--SQL statements. | |
--CHANGE THE BELOW LINE: | |
select replace(v_sql, '#USER#', trim(upper('&USER_OR_ROLE'))) v_sql |