私は、Postgresqlの位置機能が、簡単なテストのような結果をもたらす理由について戸惑っています。ここでなぜPostgresのposition()関数は異なる結果を出しますか?
は、クエリ#1:次に、ここで246
の結果を返します
SELECT count(*)
FROM
dnasample D, ibg_studies ST, subjects S
WHERE
D.studyindex=ST.studyindex
AND ST.studyabrv='CONGER'
AND D.subjectidkey=S.id
AND D.projectindex IS NULL
AND POSITION('Previous subjectid:' in D.comment) IS NULL
がクエリ#2である。これらは、このような返す理由
SELECT count(*)
FROM
dnasample D, ibg_studies ST, subjects S
WHERE
D.studyindex=ST.studyindex
AND ST.studyabrv='CONGER'
AND D.subjectidkey=S.id
AND D.projectindex IS NULL
AND POSITION('Previous subjectid:' in D.comment)=0
私は表示されません異なる結果は?
私は --Rick
ありがとう;私は今の違いを理解しています。素晴らしい答え。 – rixter
この質問は回答済みです...もう必要ありません! – rixter