ÇóMSSQLµÄ´¢´æ¹ý³Ìת»»ÎªMYsql£¡
ÒÔÏÂÊÇÎÒMSSQLµÄ´¢´æ¹ý³Ì£¬Ï£Íû¸ßÊÖÄܰïÎÒת»»Îª Mysql µÄ´¢´æ¹ý³ÌллÁË£¡ »òÕß´ó¼ÒÓÐû¼û¹ýÕâÀàÐ͵ÄÈí¼þ°¡£¡
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go
ALTER procedure [dbo].[ST_ClientBIll] @SheetId varchar(20), @Flag int
as
begin
declare @payMoney dec(12,2)
declare @NewSheetId varchar(20)
set nocount on
update clientBill set flag = 100 where flag=0 and sheetid = @sheetId
declare cur_bill cursor local for
select refsheetId,payMoney from clientBilldetail where sheetID = @sheetID
open cur_bill
while (1=1)
begin
fetch Next from cur_bill into @NewSheetID,@PayMoney
if @@Fetch_Status <> 0 break
if @NewSheetId is Null or @newSheetID = '' continue;
if @PayMoney is null select @payMoney = 0.00
update receipt set payMoney = Isnull(PayMoney,0)+@payMoney where SheetID = @NewSheetID
end
close cur_bill
deallocate cur_bill
Return 0
end
ûÈ˰ïÎÒÂð£¡ ÎØÎØ£¡
¸øÄãÒ»Ï²ο¼µÄÀý×Ó£¬
½¨Òé×Ô¼ºÏÈÊÔןÄһϣ¬ÄIJ»¶ÔÁË£¬»òÕß²»Àí½âÔÙÀ´
Ïà¹ØÎÊ´ð£º
ÎÒÒÔǰ°²×°ÁËÒ»´Î£¬ºóÀ´Ð¶ÔØÁË£¬ÏÖÔÚÔÙ°²×°µÄʱºò£¬Ìáʾ´íÎó£ºError 1305.Error reading from file C:DOCUME~1\LOCALS~1\Temp\mysql_server.msi.Verify that the file exists and that you can access it.
¿ ......
¼ÙÈçÊý¾Ý¿âÖÐÓиötest±í£¬±íÖÐÓÐid£¬Name£¬num£¬¼Ç¼ʱ¼ä
idΪ×ÔÔö³¤Ö÷¼ü£¬nameÊÇÃû×Ö£¬num±íʾÆäÊýÁ¿
1 nike 100 ϵͳʱ¼ä
2 nike 300 &n ......
ÎÒÒÔǰ°²×°ÁËÒ»´Î£¬ºóÀ´Ð¶ÔØÁË£¬ÏÖÔÚÔÙ°²×°µÄʱºò£¬Ìáʾ´íÎó£ºError 1305.Error reading from file C:DOCUME~1\LOCALS~1\Temp\mysql_server.msi.Verify that the file exists and that you can access it.
¿ÉÊÇÎÒÕÒ ......
ÈçÌâ Êý¾ÝÊÇBLOBÀàÐÍ Ôõô²ÅÄÜÐÞ¸ÄÆäÖеÄijЩֵ
BLOBÖдæÈëµÄÊÇʲôÄÚÈÝ£¿
¼ÙÉè×Ö¶ÎmemoΪblobÀàÐÍ£¬ÔÚ¸Ã×ֶεÄÖµÇ°ÃæÔö¼Ó×Ö·û´®'add--'
Ôò²Ù×÷Óï¾äÈçÏ£º
SQL code:
update tb_blog set memo=concat( ......
ÔÚÈýÊ®½²Óöµ½ÕâÑùÒ»¸öÎÊÌâ¾ÍÊÇÔËÐдúÂëʱ³öÏÖ´íÎó Fatal error: Call to undefined method mysql::fetch_array() in D:\WWW\news\index.php on line 12
£¬ÎÒ°Ñmysql::fetch_array() ¸Ä³Émysql::fetch_row() ÓÖ³öÏÖF ......