我运行了这样的查询:
select urlName from User where urlName like 'Nkj-Fm20%';
返回一条记录。
但是当我运行这样的查询时:
select * from User where urlName = 'Nkj-Fm20'
未找到任何记录。
你能帮帮我吗?答案 0 :(得分:1)
like
运算符允许使用%
jolly字符,而=
不允许使用Nkj-Fm20
运算符。因此,对于第二个查询,它仅返回具有确切urlName <VirtualHost noomo.jp:443>
DocumentRoot /var/www/noomo-web/public
<Directory "/var/www/noomo-web/public">
AllowOverride All
Options -Multiviews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [L,QSA]
</Directory>
SSLCertificateFile /etc/letsencrypt/live/noomo.jp/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/noomo.jp/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
ServerName noomo.jp
</VirtualHost>
的用户。
伊万