我的表结构是这样的
reader = tf.TextLineReader()
key, value = reader.read(filename_queue)
record_defaults = [1,1,1,1,1]
a,b,c,d,e = tf.decode_csv(records=value,record_defaults=record_defaults, field_delim=" ")
我想要更新该表中的列。我的查询是这样的
CREATE TABLE [dbo].[tdnResetTickets](
[ResetID] [int] IDENTITY(1,1) NOT NULL,
[userName] [varchar](200) NULL,
[tokenHash] [nvarchar](200) NULL,
[expirationDate] [datetime] NULL,
[tokenUsed] [bit] NULL,
[tokenType] [bit] NULL,
CONSTRAINT [PK_tdnResetTickets] PRIMARY KEY CLUSTERED
(
[ResetID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
它会抛出错误
UPDATE [dbo].[tdnResetTicket] SET [tokenUsed] = 0 WHERE ResetID =1
有谁可以指出我在这里做错了什么?
答案 0 :(得分:2)
表格为tdnResetTicket
,其中s和更新查询为UPDATE [dbo].[tdnResetTickets] SET [tokenUsed] = 0 WHERE ResetID =1
正确代码:
feed_dict
答案 1 :(得分:2)
UPDATE [dbo].[tdnResetTickets] SET [tokenUsed] = 0 WHERE ResetID =1
表格为tdnResetTickets
,其中s和更新查询为tdnResetTicket
答案 2 :(得分:-1)
更新语句中的表名不正确。
UPDATE [dbo].[tdnResetTickets] SET [tokenUsed] = 0 WHERE ResetID =1