Guest:
Register
|
Login
|
Member List
|
Search
|
Statistics
|
FAQ
Language
----------
Simplifed Chinese
Traditional Chinese
English
CnPack Forum
»
CnVCL 组件包
» 请问表中一字段设为自动增量,dhibernate如何操作?
‹‹ Last Thread
|
Next Thread ››
Poll
Trade
Reward
Activity
Printable Version
|
Email to Friend
|
Subscription
|
Favorites
Subject: 请问表中一字段设为自动增量,dhibernate如何操作?
gchiron
新警察
UID 41801
Digest Posts 0
Credits 36
Posts 11
点点分 36
Reading Access 10
Registered 2009-2-16
Status Offline
#1
Post at 2009-9-8 11:22
Profile
|
Blog
|
P.M.
请问表中一字段设为自动增量,dhibernate如何操作?
rt
rarnu
(橙子)
灌水部部长
UID 2689
Digest Posts
11
Credits 648
Posts 209
点点分 648
Reading Access 10
Registered 2006-10-2
Status Offline
#2
Post at 2009-9-8 14:17
Profile
|
Site
|
Blog
|
P.M.
DH自动导入生成podo后
那个自增的字段你做只读取不写入的操作就行了
Rarnu
CnPack Interfacer
rarnu@cnpack.org
gchiron
新警察
UID 41801
Digest Posts 0
Credits 36
Posts 11
点点分 36
Reading Access 10
Registered 2009-2-16
Status Offline
#3
Post at 2009-9-8 15:11
Profile
|
Blog
|
P.M.
不行呀,自己生成一个长串儿的数字,估计是hash值,并且最后生成的语句把它作为字符串了,结果最后报异常:转换varchar值时溢出了整数列
gchiron
新警察
UID 41801
Digest Posts 0
Credits 36
Posts 11
点点分 36
Reading Access 10
Registered 2009-2-16
Status Offline
#4
Post at 2009-9-8 15:12
Profile
|
Blog
|
P.M.
另外还想问个问题,如果多列做主键的话,SaveOrUpdateData的第三个参数pkname该如何写?还是不支持多列做主键?
rarnu
(橙子)
灌水部部长
UID 2689
Digest Posts
11
Credits 648
Posts 209
点点分 648
Reading Access 10
Registered 2006-10-2
Status Offline
#5
Post at 2009-9-8 21:04
Profile
|
Site
|
Blog
|
P.M.
三楼的问题以前也发生过,等我找个时间查查找码
Rarnu
CnPack Interfacer
rarnu@cnpack.org
Poll
Trade
Reward
Activity
CnPack Forum
CnPack English Forum
> CnWizards IDE Wizards
> CVSTracNT
> Announcements & Others
All times are GMT++8, the time now is 2024-11-22 13:22
Powered by
Discuz!
5.0.0
© 2001-2006
Comsenz Inc.
Processed in 0.008443 second(s), 9 queries , Gzip enabled
TOP
Clear Cookies
-
Contact Us
-
CnPack Website
-
Archiver
-
WAP
Member's CP Home
Edit Profile
Credits Transaction
Public User Groups
Buddy List
Main
Page Views
User Agents
Posts History
Top Forums
Top Threads
Post Ranking
Credit Ranking
Online Time
Team
Moderation Stats