我的工作是,
Update crawproduct Set fiyat = 100 Where guncellemetarihi < GETDATE()
当我同时从另一份工作中尝试这个时,我陷入了僵局
Update crawproduct Set statu = 1 Where newurunid = 3
我应该使用隔离还是表格提示?
我该怎么做?
这是 tcrawproduct 表的完整 sql 脚本。
/****** Object: FullTextCatalog [MainCrawlerCatalog] Script Date: 05/13/2013 09:05:12 ******/
CREATE FULLTEXT CATALOG [MainCrawlerCatalog]WITH ACCENT_SENSITIVITY = ON
AUTHORIZATION [dbo]
GO
/****** Object: Table [dbo].[tcrawproduct] Script Date: 05/13/2013 09:05:12 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[tcrawproduct](
[newurunid] [int] IDENTITY(1,1) NOT NULL,
[newkategoriid] [int] NULL,
[newmarkaid] [int] NULL,
[urunadi] [nvarchar](max) NULL,
[aciklama] [ntext] NULL,
[resim] [nvarchar](max) NULL,
[kayittarihi] [datetime] NULL,
[fiyat] [money] NULL,
[doviz] [nvarchar](50) NULL,
[guncellemetarihi] [datetime] NULL,
[hizligonderi] [int] NULL,
[kargofiyati] [money] NULL,
[siteid] [int] NULL,
[url] [nvarchar](max) NULL,
[indirimliurun] [int] NULL,
[crawtipi] [int] NULL,
[sira] [int] NULL,
[statu] [int] NOT NULL,
[ureticiid] [nvarchar](max) NULL,
[tercih] [int] NULL,
[gosterim] [int] NULL,
[isActiveLink] [bit] NOT NULL,
[isDeleted] [bit] NOT NULL,
[StokKodu] [nvarchar](50) NULL,
[crawedOrder] [bigint] NOT NULL,
[Hiyerarsi] [nvarchar](max) NULL,
CONSTRAINT [PK__tcrawproduct] PRIMARY KEY CLUSTERED
(
[newurunid] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [idxCproductUrunIdAdiUrl] ON [dbo].[tcrawproduct]
(
[siteid] ASC,
[isDeleted] ASC,
[statu] ASC
)
INCLUDE ( [newurunid],
[urunadi],
[url]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [idxNewUrunIdSiteId] ON [dbo].[tcrawproduct]
(
[fiyat] ASC,
[guncellemetarihi] ASC
)
INCLUDE ( [newurunid],
[siteid]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [idxSiteIdStokKodu] ON [dbo].[tcrawproduct]
(
[siteid] ASC,
[StokKodu] ASC
)
INCLUDE ( [newurunid]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [idxStatu] ON [dbo].[tcrawproduct]
(
[statu] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [idxStokKoduNewUrunId] ON [dbo].[tcrawproduct]
(
[StokKodu] ASC
)
INCLUDE ( [newurunid]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
CREATE FULLTEXT INDEX ON [dbo].[tcrawproduct](
[StokKodu] LANGUAGE [English],
[urunadi] LANGUAGE [English])
KEY INDEX [PK__tcrawproduct]ON ([FullTextForWebSite_CI], FILEGROUP [PRIMARY])
WITH (CHANGE_TRACKING = AUTO, STOPLIST = OFF)
GO
/****** Object: Default [DF__tcrawproduct_kayittarihi] Script Date: 05/13/2013 09:05:12 ******/
ALTER TABLE [dbo].[tcrawproduct] ADD CONSTRAINT [DF__tcrawproduct_kayittarihi] DEFAULT (getdate()) FOR [kayittarihi]
GO
/****** Object: Default [DF__tcrawproduct_guncellemetarihi] Script Date: 05/13/2013 09:05:12 ******/
ALTER TABLE [dbo].[tcrawproduct] ADD CONSTRAINT [DF__tcrawproduct_guncellemetarihi] DEFAULT (getdate()) FOR [guncellemetarihi]
GO
/****** Object: Default [DF__tcrawproduct_sira] Script Date: 05/13/2013 09:05:12 ******/
ALTER TABLE [dbo].[tcrawproduct] ADD CONSTRAINT [DF__tcrawproduct_sira] DEFAULT ((0)) FOR [sira]
GO
/****** Object: Default [DF__tcrawproduct_statu] Script Date: 05/13/2013 09:05:12 ******/
ALTER TABLE [dbo].[tcrawproduct] ADD CONSTRAINT [DF__tcrawproduct_statu] DEFAULT ((0)) FOR [statu]
GO
/****** Object: Default [DF__tcrawproduct_isActiveLink] Script Date: 05/13/2013 09:05:12 ******/
ALTER TABLE [dbo].[tcrawproduct] ADD CONSTRAINT [DF__tcrawproduct_isActiveLink] DEFAULT ((1)) FOR [isActiveLink]
GO
/****** Object: Default [DF__tcrawproduct_isDelete] Script Date: 05/13/2013 09:05:12 ******/
ALTER TABLE [dbo].[tcrawproduct] ADD CONSTRAINT [DF__tcrawproduct_isDelete] DEFAULT ((0)) FOR [isDeleted]
GO
/****** Object: Default [DF__tcrawprod__crawe__5DEBB64C] Script Date: 05/13/2013 09:05:12 ******/
ALTER TABLE [dbo].[tcrawproduct] ADD DEFAULT ((0)) FOR [crawedOrder]
GO