Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
$res = $DB->exec_SELECTquery('uid, image', 'fe_users', 'image<>\'\'');
我从一个脚本中看到它,并且我知道语法:
$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery($select_fields,$from_table,$where_clause,$groupBy,$orderBy,$limit);
但仍然想知道:这是什么意思?:'image<>\'\''
'image<>\'\''
列image不为空的位置
image
<>大于和小于符号表示不等于 <>等于!=
<>
!=
''空单引号正是名字的意思,空的
''
\反斜杠转义单引号,所以这, "image <> '' ");也可以
\
, "image <> '' ");
把它放在一起,这部分陈述的意思是
WHERE `image` <> ''
或者
WHERE `image` != ''
MYSQL比较函数和运算符