flashback table in 10g
a warning on indexes and constraints When a table is dropped without purge, any additional segments "belonging" to the table (such as indexes or LOBs) are also renamed and recorded in the recycle bin. the table has row movement enabled, either by an ALTER TABLE or at the time of CREATE as in the demonstration table above; and the user performing the flashback has either the FLASHBACK ANY TABLE system privilege or the FLASHBACK grant on the target table
The columns of the newly created table inherit the column names, their data types, whether columns can contain null values or not, and any associated IDENTITY property from the source table
Querying XML Data in the XML DB Repository Using fn:doc and fn:collection Functions There are two important XQuery functions that can be used to query all of the resources in the XML DB Repository. Structured storage has some performance advantages over unstructured storage and can be chosen to provide more query and update optimization through the table and index design
SQL FAQ - Oracle FAQ
COMMIT - save work done SAVEPOINT - identify a point in a transaction to which you can later roll back ROLLBACK - undo the modification I made since the last COMMIT SET TRANSACTION - Change transaction options like isolation level and what rollback segment to use SET ROLE - set the current active roles DML are not auto-commit. If you include the SAMPLE clause within a multi-table or remote query, you will get a parse error or "ORA-30561: SAMPLE option not allowed in statement with multiple table references"
If you do not specify indexes in the bind call, and two different binds in a statement specify tables that contain a different number of elements, then the number of elements actually used is the minimum number between all tables. For example, after creating this procedure, you could make the following call: exec('create table acct(c1 integer)'); You could even call this procedure remotely, as shown in the following example
Using sql*plus variables, you can accept values from the user, prompt for and check those values, set variables based on the value of other variables, and store values from the database in variables. But what if we want to run it again for a different user? Notice that when we run the script a second time, we're not prompted for the value of owner, because the variable is already defined
SELECT INTO Statement
To guard against this exception, select the result of the aggregate function COUNT(*), which returns a single value even if no rows match the condition
In the first example I wrote, would it still be using a bind variable in the INTO clause though? The reason I wanted to try the second way, was because it uses bind variables
No comments:
Post a Comment