gpt4 book ai didi

visual-studio-2008 - 如何在 SQL 中截断表值参数 (TVP)?

转载 作者:行者123 更新时间:2023-12-02 01:22:29 45 4
gpt4 key购买 nike

我想截断 TVP 而不是 DROPPING。

当我编写 TRUNCATE TYPE 时,它给出了错误。

DROP TYPE 正在工作,但我想要 TRUNCATE

谁能帮我解决语法问题吗?

谢谢

最佳答案

在 SQL Server 2008 中,表值参数在 TSQL 代码中是只读的。

To modify the data that is passed to a stored procedure or parameterized statement in table-valued parameter, you must insert the data into a temporary table or into a table variable.

Ref .

关于visual-studio-2008 - 如何在 SQL 中截断表值参数 (TVP)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2032817/

45 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com