UNION ALL and MINUS
- From: "Joan" <registre@xxxxxxxxx>
- Date: 27 Jun 2005 08:49:40 -0700
Hi all,
I have in Oracle.
INSERT INTO format ( id, name, description)
SELECT 0, null , 'all' FROM dual UNION ALL
SELECT 1, 'text' ,'sms' FROM dual UNION ALL
SELECT 2, 'melody','melody' FROM dual UNION ALL
SELECT 3, 'logo' ,'logo' FROM dual UNION ALL
SELECT 4, 'ems' ,'ems'
MINUS
SELECT id, name, description FROM format;
"This sentence is for initials values, I can execute twice and I don't
have data duplicate."
But in SyBase I don't found the solution, because I read MINUS
translate with "NOT EXIST", but "UNION ALL and NOT EXIST is not
possible"?
My dream is a sentence that I can execute in ORACLE and SyBase, but one
easy solution in SyBase it's ok for me.
Thanks a lot.
.
- Follow-Ups:
- Re: UNION ALL and MINUS
- From: Pablo Sanchez
- Re: UNION ALL and MINUS
- From: Joan
- Re: UNION ALL and MINUS
- Prev by Date: Re: How to read tran log
- Next by Date: Re: History of user logins?
- Previous by thread: Re: How to read tran log
- Next by thread: Re: UNION ALL and MINUS
- Index(es):
Relevant Pages
|