{"id":1324,"date":"2010-11-10T10:19:42","date_gmt":"2010-11-10T10:19:42","guid":{"rendered":"http:\/\/enjoyasp.net\/?p=1324"},"modified":"2010-11-10T10:23:42","modified_gmt":"2010-11-10T10:23:42","slug":"mysql%e8%af%ad%e6%b3%95","status":"publish","type":"post","link":"https:\/\/enjoyasp.net\/index.php\/2010\/11\/10\/mysql%e8%af%ad%e6%b3%95\/","title":{"rendered":"MYSQL\u8bed\u6cd5\u4e0eMsSql\u7684\u533a\u522b"},"content":{"rendered":"<p> 1\uff0c\u9009\u62e9\u8bed\u53e5\uff1a<\/p>\n<p>    * \u6bcf\u53e5\u540e\u52a0\u5206\u53f7;<br \/>\n    * else if \u5e94\u4e3aelseif\uff0c\u4e2d\u95f4\u4e0d\u7559\u7a7a\u683c\u3002mssql\u4e3a\uff1aif begin &#8230; end else if begin &#8230; end \u5f62\u5f0f<\/p>\n<p>    IF ( _TranType=&#8217;Insert&#8217; ) THEN<br \/>\n        INSERT INTO bmdcustomer(CustomerName,CustomerAddress,tel,Remark,Type,LastEditBy,LastEditDate)<br \/>\n        VALUES(_CustomerName,_CustomerAddress,_tel,_Remark,_Type,_LastEditBy,now());<br \/>\n        SET _Id = @@IDENTITY;<\/p>\n<p>    ELSEIF ( _TranType=&#8217;Update&#8217; ) THEN<br \/>\n            INSERT INTO bmdcustomer(CustomerName,CustomerAddress,tel,Remark,Type,LastEditBy,LastEditDate)<br \/>\n        VALUES(_CustomerName,_CustomerAddress,_tel,_Remark,_Type,_LastEditBy,now());<br \/>\n        SET _Id = @@IDENTITY;<br \/>\n    ELSE<br \/>\n    SELECT 1;<br \/>\n    END IF;<\/p>\n<p>2\uff0c\u65e5\u671f\uff1a\u5f53\u524d\u65f6\u95f4\uff0cMysql: now(), MsSql:getdate()<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1\uff0c\u9009\u62e9\u8bed\u53e5\uff1a * \u6bcf\u53e5\u540e\u52a0\u5206\u53f7; * else if \u5e94\u4e3aelseif\uff0c\u4e2d\u95f4\u4e0d\u7559\u7a7a\u683c\u3002mssql\u4e3a\uff1aif b [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[37],"tags":[],"class_list":["post-1324","post","type-post","status-publish","format-standard","hentry","category-mysql"],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/posts\/1324","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/comments?post=1324"}],"version-history":[{"count":0,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/posts\/1324\/revisions"}],"wp:attachment":[{"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/media?parent=1324"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/categories?post=1324"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/tags?post=1324"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}