这部分是什么

发布于 2024-11-25 12:53:56 字数 393 浏览 6 评论 0原文

我发现以下 SQL 命令:

Dim commandText As String = _
     "UPDATE Sales.Store SET Demographics = @demographics " _
     & "WHERE CustomerID = @ID;"

Sales.Store 的部分是什么?

编辑

那么适合我的情况的正确路径是什么?

在此处输入图像描述

我正在 MSVS2010 内的 ASP.net 中执行这一切(如果这有帮助的话)...

I found the following SQL command:

Dim commandText As String = _
     "UPDATE Sales.Store SET Demographics = @demographics " _
     & "WHERE CustomerID = @ID;"

What is the part that says Sales.Store?

EDIT

So what would be the correct path for my situation?

enter image description here

I'm doing this all in ASP.net inside of MSVS2010 if that helps at all...

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

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

发布评论

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

评论(4

美男兮 2024-12-02 12:53:56
  • Sales - 数据库或模式名称(我敢打赌数据库名称,因为历史上在 MS SQl 模式中很少使用 Oracle)
  • Store - 表或视图名称

在任何语句中(MS Sql Server) 访问对象定义

<object> ::=
{ 
    [ server_name . database_name . schema_name . 
    | database_name .[ schema_name ] . 
    | schema_name .
    ]
    table_or_view_name}

对于其他数据库引擎可能有所不同

  • Sales - database or schema name (I would bet for database name because historically in MS SQl schemas used very rare as opposed to Oracle)
  • Store - table or view name

In any statement (MS Sql Server) access object definition is

<object> ::=
{ 
    [ server_name . database_name . schema_name . 
    | database_name .[ schema_name ] . 
    | schema_name .
    ]
    table_or_view_name}

For other data base engines it could differ

祁梦 2024-12-02 12:53:56

就像其他人所说的那样,Sales 可能意味着模式或数据库。在 MySQL 中,它是数据库名称,在 MSSQL 中,它是架构名称。

Like the others say, Sales could mean a schema or database. In MySQL it's a database name in MSSQL it's a schema name.

许一世地老天荒 2024-12-02 12:53:56

Sales 是架构(或数据库)名称,Store 是表名称。

在您的情况下,只需省略架构名称,如下所示:

UPDATE  ContentTable
SET     field = @value
WHERE   id = @id

Sales is the schema (or database) name, Store is the table name.

In your case, just omit the schema name, like this:

UPDATE  ContentTable
SET     field = @value
WHERE   id = @id
梅窗月明清似水 2024-12-02 12:53:56

我不确定 @ 符号(也许是 SQL Server?),但 Sales.Store 是一个表名。特别是,Sales 似乎是一个架构名称,Store 是该架构中表的名称。

I'm not sure about the @ symbols (SQL server, perhaps?), but Sales.Store is a table name. In particular Sales appears to be a schema name and Store is the name of a table within that schema.

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