In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly talks about "the solution to the biggest Id conflict in sqlserver database". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "the solution to the biggest Id conflict in sqlserver database".
The copy code is as follows:
CREATE TABLE [dbo]. [TbGuidTable] ([TableName] [varchar] (50) NOT NULL, [KeyName] [varchar] (20) NOT NULL, [KeyValue] [varchar] (100) NOT NULL) ON [PRIMARY] GO if exists (select * from dbo.sysobjects where id = object_id) and OBJECTPROPERTY (id NumberIsProcedure`) = 1) drop procedure PCreateGuid GO-purpose: add an entry to record personal information-- Project name:-- description:-- time: 2011-7-4 1514 14414815- -CREATE PROCEDURE PCreateGuid @ tableName varchar (50) @ keyname varchar, @ guid varchar (100) out as if not exists (select * from TbGuidTable where tablename=@tableName and keyname=@keyname) insert into TbGuidTable (tablename,keyname,keyvalue) values (@ tableName,@keyname 10000) update TbGuidTable set keyvalue=keyvalue+1 where tablename=@tableName and keyname=@keyname select @ guid=cast (keyvalue as varchar) from TbGuidTable where tablename=@tableName and keyname=@keyname Go-- *-declare @ tableName varchar (50) declare @ keyname varchar declare @ guid varchar (100) set @ tableName='tb1' set @ keyname='def' execute PCreateGuid @ tableName,@keyname,@guid out print @ guid I believe that you have a deeper understanding of "the solution to the biggest Id conflict in sqlserver database". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.