简体   繁体   English

SQL Server 2005查询以获取多个在QC项目数据库中具有相同模式的记录

[英]SQL Server 2005 Query for getting multiple records which have same pattern in QC project database

We access the SQL Server 2005 server from the QC Application. 我们从QC应用程序访问SQL Server 2005服务器。

In order to access the data present in the SQL Server 2005 server we use the Dash Board Module in Quality Center Application. 为了访问SQL Server 2005服务器中存在的数据,我们在Quality Center Application中使用了仪表板模块。

Sorry I could not post images as I am a fresher to stackoverflow. 抱歉,我无法发布图片,因为我是stackoverflow的新手。

When I execute the below query I recieved two rows as output. 当我执行以下查询时,我收到了两行作为输出。

SELECT *
FROM CYCL_FOLD
WHERE CF_ITEM_NAME LIKE  '%Quality Center%'

When I parameterised the entity and when I am using LIKE cause it is returning only row. 当我参数化实体时,当我使用LIKE时,它仅返回行。

SELECT *
FROM CYCL_FOLD
WHERE CF_ITEM_NAME LIKE   @FOLDER_NAME@

Please let me know how to get multiple rows using like clause. 请让我知道如何使用like子句获取多行。

SELECT *
  FROM CYCL_FOLD
     WHERE CF_ITEM_NAME LIKE  '%'+ @FOLDER_NAME +'%'

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM