Retourner au contenu associé (entrée de forum : Recherche d'un pattern dans une table)
Posté par fcartegnie le 01 mars 2010 à 15:20. En réponse au message Recherche d'un pattern dans une table. Évalué à 2.
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
# pattern matching sans wildcards
Posté par fcartegnie . En réponse au message Recherche d'un pattern dans une table. Évalué à 2.
(
( LEFT(foo,1) = "a" )
+
( 2 * LEFT(foo,2) = "ab" )
+
( 4 * LEFT(foo,3) = "abc" )
+
( 8 * LEFT(foo,4) = "abcd" )
+
...
) AS rank
ORDER by rank