我从W3schools 2015复制了表格......以下是一些数据:
这里我使用的列和数据类型如下。
CustomerID = int
CustomerName = varchar
ContactName = varchar
Address = varchar
City = varchar
PostalCode = varchar
Country = text
当我使用以下查询时,我得到了实际结果。
SELECT * FROM Customers WHERE Country LIKE 'U%'; SELECT * FROM Customers WHERE Country LIKE 'M%'; SELECT * FROM Customers WHERE Country LIKE 'G%';
现在的问题是,当我使用以下查询时,我没有得到实际结果。
SELECT * FROM Customers WHERE Country LIKE 's%';
我没看到任何排!! 但我们应该看到以下输出,
为什么?任何人都可以解释一下......
而且我完全处于新手阶段..
先谢谢
答案 0 :(得分:0)
所以,对于这个案例你可以尝试一次,
<div id = "A">
<div id = "container">
<div id="innercontainer">
<div>
<div id="ruleContainer">
<span id="rule">CNET</span>
<div id="name">CNET></div>
</div>
</div>
</div>
<a href = "#....."></a>
</div>
<div id = "A">
<div id = "container">
<div id="innercontainer">
<div>
<div id="ruleContainer">
<span id="rule">GNET</span>
<div id="name">GNET></div>
</div>
</div>
</div>
<a href = "#....."></a>
</div>`<div id = "A">
<div id = "container">
<div id="innercontainer">
<div>
<div id="ruleContainer">
<span id="rule">DNET</span>
<div id="name">DNET></div>
</div>
</div>
</div>
<a href = "#....."></a>
</div>`
或
SELECT * FROM Customers WHERE rtrim(ltrim(Country)) LIKE 's%';
答案 1 :(得分:-1)