delphiÈçºÎ»ñÈ¡mssql´æ´¢¹ý³ÌµÄ·µ»ØÖµ
´æ´¢¹ý³ÌÊÇÕâôдµÄ£¬
Declare @id int
BEGIN TRANSACTION
Insert into xxxxxTable(f1,f2)values(@a,@b)
Select @id=@@identity
Insert into abcTable(ff1,ff2,ff3)values(@c,@id,@dd)
IF @@error <> 0 --·¢Éú´íÎó
BEGIN
ROLLBACK TRANSACTION
RETURN 0
END
ELSE
BEGIN
COMMIT TRANSACTION
RETURN 1 --Ö´Ðгɹ¦
END
ÎÒÏëÖªµÀ£¬Ó¦ÓóÌÐòÈçºÎÖªµÀ´æ´¢¹ý³Ì·µ»ØÁË1»¹ÊÇ0ÄØ£¿
²âÊÔ"´æ´¢¹ý³Ì"ÃûÊÇ·ñ´æÔÚ
if not ´æ´¢¹ý³ÌÃû then
begin
Ö´Ðд洢¹ý³Ì;
±äÁ¿=1; //Õæ
end
else
±äÁ¿=0;
Â¥Ö÷¿ÉÒÔ½¨Ò»¸ö´øÊä³ö²ÎÊýµÄ´æ´¢¹ý³Ì ¼´²ÎÊýÓÃoutput¡¡±êʶ
ÏêϸÇë²ÎÔÄSQLSERVER°ïÖú£¬¿Ï¶¨»áÓиü¶àµÄÊÕ»ñ¡£
´æ´¢¹ý³ÌÖ»·µ»ØÒ»¸öÕûÊý¿ÉÒÔÓÃoutput²ÎÊý¡£
ÔÚdelphiÖÐÒÔ²ÎÊýÐÎʽ¾ÍÄÜ»ñÈ¡Öµ¡£
ADOSto
Ïà¹ØÎÊ´ð£º
ÒÑÖªPython ÖУº
s = unicode("²âÊÔ", "gb2312")
s = u'\u6d4b\u8bd5'
print s
²âÊÔ
ÔÚDelphiÀïÃæÈçºÎ½«\u6d4b\u8bd5ÕâÑùµÄ»¹Ô³ÉGb2312µÄºº×ÖÄØ£¿
ÕÒµ½¸ö·½·¨
......
VC ¿ØÖÆ̨³ÌÐò:
#include <iostream>
using namespace std;
int main()
{
const int def_buffer = 1024 * 4;
DWORD t;
BYTE b[def_buffer];
memset(b, 0, sizeof(b));
PBYTE p;
t = GetTickC ......
ÎÒ±¾À´ÔÚѧУÊÇŪµÄJ2EE
×òÌìÈ¥Á˳¤É³Ò»¼Ò¹«Ë¾Ó¦Æ¸ ˵ÊÇÓÐÒ»¸öÏîÄ¿ delphiµÄ
ʵϰÆÚÒ»¸öÔ ËÄÌì°ëµÄdelphiÅàѵ ºóÃæ25Ìì¸øÄãÒ»¸öÉè¼ÆÎĵµ×Ô¼º×öÒ»¸öÏîÄ¿
×ߺ󲻾ôòµç»°¹ýÀ´½ÐÎÒÐÇÆÚһȥ±¨µ½
¿´µ½delphiµ ......
hongqi162¡¢windindance
´Ë2È˳¤ÆÚ²»ÔÚÏߣ¬ÌرðÊÇwindindance
¸ü»»ÓÐÄÜÁ¦µÄÈËÉÏ
hongqi162»¹ÊǾ³£ÉÏÀ´×ª×ªµÄ
ÒýÓÃ
¸ü»»ÓÐÄÜÁ¦µÄÈËÉÏ
ÆäʵҲ²»ÊÇʲôÄÜÁ¦µÄÔÒò£¬Ö÷Òª¿ÉÄÜÊÇʱ¼äÎÊÌâ°É
¹¤×÷µÄ»¹ÒªÉÏ°à£¬Ñ§Ï ......
ÎÒÔÚÍøÉÏÕÒÁ˸ö¹ØÓÚIEBHOµÄ´úÂ룬Ȼºó°´ÕÕÄĸöÉèÖÃÁË£¬ºóÀ´ÔËÐеÄʱºò³öÏÖ
¹¹½¨
[¾¯¸æ] Project2.dpr(14): File not found: 'MYbho.TLB'
[¾¯¸æ] Project2.dpr(16): File not found: 'MYbho.RES'
......