日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 运维知识 > 数据库 >内容正文

数据库

mysql调试.net_需要有关使用.NET和MySQL调试应用程序的帮助

發(fā)布時(shí)間:2023/12/15 数据库 19 豆豆
生活随笔 收集整理的這篇文章主要介紹了 mysql调试.net_需要有关使用.NET和MySQL调试应用程序的帮助 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

對(duì)于如何在使用.NET將數(shù)據(jù)插入MySQL數(shù)據(jù)庫時(shí)跟蹤我的bug,您能給我什么建議?

錯(cuò)誤消息為:

MySql.Data.MySqlClient.MySqlException: Duplicate entry '26012' for key 'StockNumber_Number_UNIQUE'

對(duì)日志的審查證明庫存編號(hào)26012尚未插入。

使用中的產(chǎn)品。

Visual Studio 2008。

mysql.data.dll 6.0.4.0.

Windows 7 Ultimate 64位和Windows 2003 32位。

自定義構(gòu)建的ORM框架(具有源代碼)。

從Access 2003數(shù)據(jù)庫導(dǎo)入數(shù)據(jù)。

該代碼適用于3000-5000件進(jìn)口商品。

如果只導(dǎo)入記錄本身,則在完整運(yùn)行中導(dǎo)致問題的導(dǎo)入記錄將正常工作。如果以不同的方式對(duì)要導(dǎo)入的數(shù)據(jù)進(jìn)行排序,我還看到了其他記錄上的錯(cuò)誤。

已嘗試導(dǎo)入,有交易記錄也有交易記錄。

已經(jīng)從系統(tǒng)中注銷了。

創(chuàng)建表的SQL命令:

CREATE TABLE `RareItems_RareItems` (

`RareItemKey` CHAR(36) NOT NULL PRIMARY KEY,

`StockNumber_Text` VARCHAR(7) NOT NULL,

`StockNumber_Number` INT NOT NULL AUTO_INCREMENT,

UNIQUE INDEX `StockNumber_Number_UNIQUE` (`StockNumber_Number` ASC),

`OurPercentage` NUMERIC ,

`SellPrice` NUMERIC(19, 2) ,

`Author` VARCHAR(250) ,

`CatchWord` VARCHAR(250) ,

`Title` TEXT ,

`Publisher` VARCHAR(250) ,

`InternalNote` VARCHAR(250) ,

`DateOfPublishing` VARCHAR(250) ,

`ExternalNote` LONGTEXT ,

`Description` LONGTEXT ,

`Scrap` LONGTEXT ,

`SuppressionKey` CHAR(36) NOT NULL,

`TypeKey` CHAR(36) NOT NULL,

`CatalogueStatusKey` CHAR(36) NOT NULL,

`CatalogueRevisedDate` DATETIME ,

`CatalogueRevisedByKey` CHAR(36) NOT NULL,

`CatalogueToBeRevisedByKey` CHAR(36) NOT NULL,

`DontInsure` BIT NOT NULL,

`ExtraCosts` NUMERIC(19, 2) ,

`IsWebReady` BIT NOT NULL,

`LocationKey` CHAR(36) NOT NULL,

`LanguageKey` CHAR(36) NOT NULL,

`CatalogueDescription` VARCHAR(250) ,

`PlacePublished` VARCHAR(250) ,

`ToDo` LONGTEXT ,

`Headline` VARCHAR(250) ,

`DepartmentKey` CHAR(36) NOT NULL,

`Temp1` INT ,

`Temp2` INT ,

`Temp3` VARCHAR(250) ,

`Temp4` VARCHAR(250) ,

`InternetStatusKey` CHAR(36) NOT NULL,

`InternetStatusInfo` LONGTEXT ,

`PurchaseKey` CHAR(36) NOT NULL,

`ConsignmentKey` CHAR(36) ,

`IsSold` BIT NOT NULL,

`RowCreated` DATETIME NOT NULL,

`RowModified` DATETIME NOT NULL

);

要插入記錄的SQL命令和參數(shù):

INSERT INTO `RareItems_RareItems`

(`RareItemKey`, `StockNumber_Text`, `StockNumber_Number`, `OurPercentage`, `SellPrice`, `Author`, `CatchWord`, `Title`, `Publisher`, `InternalNote`, `DateOfPublishing`, `ExternalNote`, `Description`, `Scrap`, `SuppressionKey`, `TypeKey`, `CatalogueStatusKey`, `CatalogueRevisedDate`, `CatalogueRevisedByKey`, `CatalogueToBeRevisedByKey`, `DontInsure`, `ExtraCosts`, `IsWebReady`, `LocationKey`, `LanguageKey`, `CatalogueDescription`, `PlacePublished`, `ToDo`, `Headline`, `DepartmentKey`, `Temp1`, `Temp2`, `Temp3`, `Temp4`, `InternetStatusKey`, `InternetStatusInfo`, `PurchaseKey`, `ConsignmentKey`, `IsSold`, `RowCreated`, `RowModified`)

VALUES

(@RareItemKey, @StockNumber_Text, @StockNumber_Number, @OurPercentage, @SellPrice, @Author, @CatchWord, @Title, @Publisher, @InternalNote, @DateOfPublishing, @ExternalNote, @Description, @Scrap, @SuppressionKey, @TypeKey, @CatalogueStatusKey, @CatalogueRevisedDate, @CatalogueRevisedByKey, @CatalogueToBeRevisedByKey, @DontInsure, @ExtraCosts, @IsWebReady, @LocationKey, @LanguageKey, @CatalogueDescription, @PlacePublished, @ToDo, @Headline, @DepartmentKey, @Temp1, @Temp2, @Temp3, @Temp4, @InternetStatusKey, @InternetStatusInfo, @PurchaseKey, @ConsignmentKey, @IsSold, @RowCreated, @RowModified)

@RareItemKey = 0b625bd6-776d-43d6-9405-e97159d172a6

@StockNumber_Text = 199305

@StockNumber_Number = 26012

@OurPercentage = 22.5

@SellPrice = 1250

@Author = SPARRMAN, Anders.

@CatchWord = COOK: SECOND VOYAGE

@Title = A Voyage Round the World with Captain James Cook in H.M.S. Resolutiona| Introduction and notes by Owen Rutter, wood engravings by Peter Barker-Mill.

@Publisher =

@InternalNote =

@DateOfPublishing = 1944

@ExternalNote = The first English translation of Sparrmanas narrative, which had originally been published in Sweden in 1802-1818, and the only complete version of his account to appear in English. The eighteenth-century translation had appeared some time before the Swedish publication of the final sections of his account. Sparrmanas observant and well-written narrative of the second voyage contains much that appears nowhere else, emphasising naturally his interests in medicine, health, and natural history.<br><br>One of 350 numbered copies: a handsomely produced and beautifully illustrated work.

@Description = Small folio, wood-engravings in the text; original olive glazed cloth, top edges gilt, a very good copy. London, Golden Cockerel Press, 1944.

@Scrap =

@SuppressionKey = 00000000-0000-0000-0000-000000000000

@TypeKey = 93f58155-7471-46ad-84c5-262ab9dd37e8

@CatalogueStatusKey = 00000000-0000-0000-0000-000000000003

@CatalogueRevisedDate =

@CatalogueRevisedByKey = c4f6fc06-956d-44c4-b393-0d5462cbffec

@CatalogueToBeRevisedByKey = 00000000-0000-0000-0000-000000000000

@DontInsure = False

@ExtraCosts =

@IsWebReady = False

@LocationKey = 00000000-0000-0000-0000-000000000000

@LanguageKey = 00000000-0000-0000-0000-000000000000

@CatalogueDescription =

@PlacePublished = Golden Cockerel Press

@ToDo =

@Headline =

@DepartmentKey = 529578a3-9189-40de-b656-eef9039d00b8

@Temp1 =

@Temp2 =

@Temp3 =

@Temp4 = v

@InternetStatusKey = 00000000-0000-0000-0000-000000000000

@InternetStatusInfo =

@PurchaseKey = 00000000-0000-0000-0000-000000000000

@ConsignmentKey =

@IsSold = True

@RowCreated = 8/04/2010 8:49:16 PM

@RowModified = 8/04/2010 8:49:16 PM

關(guān)于導(dǎo)致錯(cuò)誤的原因和/或如何跟蹤導(dǎo)致問題的原因的建議?

總結(jié)

以上是生活随笔為你收集整理的mysql调试.net_需要有关使用.NET和MySQL调试应用程序的帮助的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。