如何使用where子句根据其中字符的长度获取输出

发布于 2025-01-16 18:41:32 字数 286 浏览 4 评论 0原文

所以问题是我有以下问题: 显示表服装中的品牌列,其中长度(品牌)=10。

所以我使用了查询: select Brand fromclothing where length(Brand)=10; 这给了我一个空集的输出,所以我检查了我的表,看看它是否真的应该给出一个空集,答案是否定的。 因此,如果有人能够说出出了什么问题,那将会有很大帮助 下面给出了表格的图像和我尝试的输入。 表格图像和我提供的输入

So the thing is that I have the following question:
Display the column Brand from the table clothing where length(Brand)=10.

So I used the query: select Brand from clothing where length(Brand)=10;
This gives me the out put as an empty set, so I checked my table to see if it was actually supposed to give an empty set and the answer was no.
So if anyone would be able to tell what's going wrong then that would be of great help
The images for the table and the input I tried are given below.
Table image and the input I gave

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文