A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://pojntfx.github.io/uni-db1-notes/syntax.html below:

Uni DB1 Syntax Details

“so basically i am monkey” - monke, monkeeee

Acknowledgements

Most of the following is based on the Oracle Tutorial.

Reset Everything

Run the following to get the commands to drop all tables and their constraints:

begin
  for i in (select index_name from user_indexes where index_name not like '%_PK') loop
    execute immediate 'drop index ' || i.index_name;
  end loop;

  for i in (select trigger_name from user_triggers) loop
    execute immediate 'drop trigger ' || i.trigger_name;
  end loop;

  for i in (select view_name from user_views) loop
    execute immediate 'drop view ' || i.view_name;
  end loop;

  for i in (select table_name from user_tables) loop
    execute immediate 'drop table ' || i.table_name || ' cascade constraints';
  end loop;

  execute immediate 'purge recyclebin';
end;

Now copy & paste the output into SQL Developer’s SQL worksheet and hit F5.

SQL Operators = Equality !=,<> Inequality > Greater than < Less than >= Greater than or equal to <= Less than or equal to IN Equal to any value in a list of values ANY/ SOME/ ALL Compare a value to a list or subquery. It must be preceded by another operator such as =, >, <.j NOT IN Not equal to any value in a list of values [NOT] BETWEEN n and m Equivalent to [Not] >= n and <= y. [NOT] EXISTS Return true if subquery returns at least one row IS [NOT] NULL NULL test Joins Aliases Limits and Pagination Dates and Intervals Expressions
select product_name as "Product Name", list_price - standard_cost as "Gross Profit" from products order by "Gross Profit"
Grouping and Ordering Counting and Sums Inserting Switches Helper Functions Auto-Generated Primary Keys Modifying Columns Virtual Columns Modifying Tables Constraints Types Views Indexes PL/SQL Block Structure Variables Fetching Data Branches and Expressions Switches Labels and Goto Loops Types and Objects Exceptions Cursors Locks Procedures Functions Packages Triggers Maps Arrays

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4