• TSQL - 是否可以定义排序顺序?

    时间:2023-02-01 22:49:29

    Is it possible to define a sort order for the returned results? 是否可以为返回的结果定义排序顺序? I would like the sort order to be 'orange' 'apple' 'strawberry' not ...

  • TSQL--按某字段列分组,在将各组中某列合并成一行

    时间:2023-01-21 15:14:10

    鉴于群里很多同事在问这个问题,我简单写个Demo,希望对初学者有帮助!   无真相,无解说,不解释,直接上Code! --==================================================--示例代码,仅供参考--按照object_id分组,将同一组的name列...

  • 如何使用TSQL将文件上载到SQL Server 2008中的varbinary(max)列?

    时间:2023-01-21 00:56:10

    This must be possible because I believe I've done it before. Here's my query: 这一定是可能的,因为我相信我之前已经做过了。这是我的查询: insert into exampleFiles Values(NEWID(), c...

  • 如何在Visual Studio 2010数据库项目中开发TSQL

    时间:2023-01-16 15:01:05

    Silly sounding question, I know... Let me lay some groundwork first. 愚蠢的问题,我知道......让我先做一些基础工作。 I have successfully created a database project compris...

  • 如何在tsql中获得小数点后的2位数字?

    时间:2023-01-14 15:24:14

    I am having problem to format digits in my select column.I used FORMAT but it doesn't work. Here is my column: 在我的select列中,我有格式化数字的问题。我用了格式,但不行。这是我的专栏...

  • TSQL HASHBYTES 用法

    时间:2023-01-08 05:54:16

    SSIS 设计系列:Package设计1:选择数据类型、暂存数据和并发Package设计2:增量更新Package 设计3:数据源的提取和使用暂存在使用SSIS Package处理海量数据时,必须精心设计Package的各个Task组件,“锱铢必较”,以最快的速度和最小的资源消耗,完成既定的数据处理...

  • tsql脚本向现有表添加删除级联

    时间:2022-12-31 18:06:14

    is there a script that can be used to enable cascaded deletion for existing tables. Thanks. 是否有一个脚本可以用于对现有表执行级联删除。谢谢。1 个解决方案 ...

  • TSQL选择where子句中的最小日期。

    时间:2022-12-25 22:50:55

    Here is a sample dataset: 这是一个样本数据集: ID DATE STATUS DURATIONTIME1 30-08-2017 Done 2201 30-08-2017 In progress 1001 29-08...

  • 在TSQL中有交叉连接的替代方法吗

    时间:2022-12-16 09:25:54

    I have two tables Table1 and Table2 where i need to find all the rows which satisfies the condition Fuzzy_Qgram(Approximate matching optimization) bet...

  • 在tsql中使用NULL进行数学运算

    时间:2022-12-16 09:25:42

    Why 为什么 select 1 - NULL returns NULL instead of 1? 返回NULL而不是1? It wasn't clearly expected to me. 对我来说,这并不是我想要的。3 个解决方案 ...

  • 如何使用TSQL更新SQL SERVER中的BLOB

    时间:2022-12-16 09:25:36

    How do I update a BLOB field only using TSQL (for example from SSMS and not using any code such as ADO.Net or Linq)? 如何仅使用TSQL更新BLOB字段(例如,从SSMS更新而不使用...

  • TSQL - 使用交叉应用和透视视图

    时间:2022-12-16 09:25:12

    this is my base table: 这是我的基表: docID | rowNumber | Column1 | Column2 | Column3 I use cross apply and pivot to transform the records in Column1 to ac...

  • TSQL:从另一个存储过程调用存储过程并读取结果

    时间:2022-12-15 09:34:30

    I have a stored procedure that, ending with a SELECT, returns a recordset. I can call it within anoher stored procedure like this: 我有一个存储过程,以SELECT结尾,...

  • 如何知道执行的TSQL存储过程更新

    时间:2022-12-15 09:34:00

    How can I check if my TSQL stored procedure updated within the stored procedure in order to create a proper message? 如何检查我的TSQL存储过程是否在存储过程中更新以创建正确的消息?...

  • TSQL - 是否可以定义排序顺序?

    时间:2022-12-06 10:36:07

    Is it possible to define a sort order for the returned results? 是否可以为返回的结果定义排序顺序? I would like the sort order to be 'orange' 'apple' 'strawberry' not ...

  • 是否可以在TSQL脚本文件中引用其他脚本?

    时间:2022-12-06 10:26:35

    like C file, add reference in a SQL script file at beginning? 像C文件一样,在开始时在SQL脚本文件中添加引用? #include "somefile.sql"-- other code...1 个解决方案 ...

  • xml到tsql select语句只返回一行

    时间:2022-12-05 14:22:43

    I need to build an table using an xml. 我需要使用xml构建一个表。 This is my xml: 这是我的xml: <root> <Child>c1</Child> <Child>c2</Child...

  • TSQL中的空字符是什么?

    时间:2022-11-26 20:18:55

    I am wondering what the literal for a Null character (e.g. '\0') is in TSQL. 我想知道空字符的字面意思是什么。TSQL ' \ 0 ')。 Note: not a NULL field value, but the nul...

  • 带空值的OPENJSON交叉应用(TSQL)

    时间:2022-11-17 19:14:39

    I have a series of OPENJSON statements and on the final step of my stored procedure, I parse some JSON from the final column in the second-to-last tab...

  • TSQL Identity 用法全解

    时间:2022-11-11 09:26:16

    Identity是标识值,在SQL Server中,有ID列,ID属性,ID值,ID列的值等术语。 Identity属性是指在创建Table时,为列指定的Identity属性,其语法是:column_name type IDENTITY [ (seed , increment) ],Identity...