MySQL Forums
Forum List  »  German

SQL nur erste row - für alle Datenbanken
Posted by: HubbleSpace
Date: September 05, 2006 06:54AM

Habe ein ähnliches Prob.

>> SELECT TOP 1 * FROM tabelle;
ist bei sqlserver korrekt ,

>> SELECT * FROM tabelle LIMIT 1;
funktioniert bei mysql

und Oracle will irgendwas mit rownum haben.

Ähnliche Probs gibt es auch bei Create Table und an stored procedure brauch ich gar nicht erst denken.

Ich benötige aber eine allgemeine Implementierung welche für alle SQL-Datenbanken korrekt arbeitet.
Gibt es da eine Möglichkeit dies zu schaffen ohne verschiedene sql-scripte für alle Datenbanken zu schreiben.

Hubble

Options: ReplyQuote


Subject
Views
Written By
Posted
12006
August 26, 2006 07:40AM
5556
August 26, 2006 08:20AM
SQL nur erste row - für alle Datenbanken
5621
September 05, 2006 06:54AM
4106
September 20, 2006 12:08AM
4231
September 20, 2006 07:45AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.