由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - SQL help!
相关主题
SQL and XMLSQL Query 取transaction table 中本周的记录
Question on SQL QuerySQL Server Update Query - non-unique value
SQL StandardNeed help on a strange SQL server problem
请教SQLSQL Query Question
Oracle Group and Index question请教 sql server IN vs. OR
有趣的Join问题,源于SQL和SAS比较。Debugging in SQLPLUS, need help
SQL 2000 create index 問題instr() 在 pl/sql 中是什么意思?
SQL aggregate multiple columns in ACCESSRe: Please help on replacing character i
相关话题的讨论汇总
话题: sql话题: string话题: substing话题: tablea
进入Database版参与讨论
1 (共1页)
t******t
发帖数: 51
1
How to check string A is a substring of string B in SQL? Specifiaclly, how to
finish the following SQL query:
select ...
from tableA x
where x.attributeA is a substing of stringB
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Thanks in advance!
p*******k
发帖数: 57
2
it depends on which Database server you are using.
you may find some string related function
look for examples or google.
for example:
USE Northwind
GO
SELECT ProductName
FROM Products
WHERE CONTAINS(ProductName, ' "sasquatch ale" OR "steeleye stout" ')
GO

to

【在 t******t 的大作中提到】
: How to check string A is a substring of string B in SQL? Specifiaclly, how to
: finish the following SQL query:
: select ...
: from tableA x
: where x.attributeA is a substing of stringB
: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: Thanks in advance!

t******t
发帖数: 51
3
I'm using Oracle 9.

【在 p*******k 的大作中提到】
: it depends on which Database server you are using.
: you may find some string related function
: look for examples or google.
: for example:
: USE Northwind
: GO
: SELECT ProductName
: FROM Products
: WHERE CONTAINS(ProductName, ' "sasquatch ale" OR "steeleye stout" ')
: GO

l****g
发帖数: 122
4
look up "instr()" function in your oracle manual.
Thanks.

to

【在 t******t 的大作中提到】
: How to check string A is a substring of string B in SQL? Specifiaclly, how to
: finish the following SQL query:
: select ...
: from tableA x
: where x.attributeA is a substing of stringB
: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: Thanks in advance!

t******t
发帖数: 51
5

Problem solved! instr() is the way to go. Thank you.

【在 l****g 的大作中提到】
: look up "instr()" function in your oracle manual.
: Thanks.
:
: to

1 (共1页)
进入Database版参与讨论
相关主题
Re: Please help on replacing character iOracle Group and Index question
问一个小问题!有趣的Join问题,源于SQL和SAS比较。
一个看似简单的sql语句SQL 2000 create index 問題
问个关于sql query 运行速度的问题SQL aggregate multiple columns in ACCESS
SQL and XMLSQL Query 取transaction table 中本周的记录
Question on SQL QuerySQL Server Update Query - non-unique value
SQL StandardNeed help on a strange SQL server problem
请教SQLSQL Query Question
相关话题的讨论汇总
话题: sql话题: string话题: substing话题: tablea