在特定数据中获取字母位置案例敏感

发布于 2025-02-02 18:54:12 字数 327 浏览 2 评论 0原文

在db(somename)中,在列中的表(wrorker)中(first_name)有一个字段(agenname)
我想知道在该特定的“ agenname”中的“ A”的位置(case敏感。6。不是1)

看到了一些带有二进制,位置,strindex,Colutate等的一般示例,

但是它们在所有高水平的地方。
我想学习如何在特定字段上使用它们。
例如,也许在句子中的某个地方 -

select first_name from worker where first_name = AGenName

thnx寻求帮助

in a db (someName), in a table (worker) in a column (first_name) there is a field (AGenName)

I would like to know the location of 'a' in that specific 'AGenName' (case sensitive. 6. not 1)

Saw some general examples with binary, position, strIndex, collate etc,
but they where all high Level.
I would like to learn how to use them on a -specific- field.
like, perhaps somewhere in a sentence like -

select first_name from worker where first_name = AGenName

Thnx for the help

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

谁与争疯 2025-02-09 18:54:12

从一个朋友那里得到了这个。
简单简单:
(在她的db firstName ='amitabh'上,所以..)

select instr(binary first_name, binary'a') from worker where firstName = 'Amitabh';

got this from a friend.
Simple and easy:
(on her DB firstName = 'Amitabh', so..)

select instr(binary first_name, binary'a') from worker where firstName = 'Amitabh';
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文