Professional Documents
Culture Documents
SQL Commands
SQL Commands
SQL Commands
create table (
);
drop table r;
delete from r;
OR
delete from r
where P;
distinct r
as
not like
*
select
from
order by A1 asc/dsc, A2 asc/dsc,..........
union all, intersect all, except all
null arithmetic
null comparision
is unknown, is not unknown
coalesce(_ , _)
group by
Commands
/* */ --
select
from
where
group by
having;
A1 in r
not in (returns boolean)
some (r)
all (r)
exists r
not exists r (compare with in/ not in) (returns boolean)
unique r
not unique r (returns boolean)
with as
insert into r
values ( , , ,)
OR
insert into r (A1,A2,A3......)
values ( , , , )
update r
set A =
where P;
update
set A = case
when P1 then _
when P2 then _
else
end
Commands