Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: Compatibilité SQL


  • From: Mathieu Arnold <mat(at)mat(dot)cc>
  • To: pgsql-fr-generale(at)postgresql(dot)org
  • Cc: Cyril(dot)ZEKSER(at)nexans(dot)com
  • Subject: Re: Compatibilité SQL
  • Date: Sun, 04 Dec 2005 15:16:30 +0100
  • Message-id: <5580715852C25976C40F1BBD(at)cc-126-240(dot)int(dot)t-online(dot)fr>


+-le 29/11/2005 11:12 +0100, Cyril(dot)ZEKSER(at)nexans(dot)com écrivait :
| 
| Bonjour à tous, 
| 
| Pour mon application actuelle (Tomcat/Oracle), je suis amené à faire des
| modifications sur les requêtes en tenant compte d'une migration courante
| sur pgSql. 
| 
| Je rencontre la fonction CASE suivante, mais je n'arrive pas à savoir si
| elle est compatible avec PostgreSQL. 
| Pouvez-vous me le dire ? et si non, s'il y a un équivalent s'il vous plait
| ?  Idem avec INSTRB ... 
| 
| SELECT CASE WHEN nav.src_id = nav.OID or nav.src_id = 0 THEN nav.oid ELSE
| nav.src_id END OID, ns.up_navigation FROM NEXANS_NAV_STRUCT ns,
| NEXANS_NAVIGATION nav WHERE ( ns.OID = ?  OR INSTRB( up_navigation, ';'|| ?
| || ';' ) > 0 ) AND nav.oid = ns.oid 

ça me semble aussi être pas trop mal. La seule chose c'est le OID qui se
trouve apres le END, je pense qu'en SQL standard, on dit AS OID.

-- 
Mathieu Arnold



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group