Êý¾Ý¿âÃüÃû¹æ·¶£¨ÊÊÓÃSQL Server£©
Éè¼ÆÔÔò
·ûºÅÈý´ó·¶Ê½£¨Ã¿Ò»Áбí´ïÒ»¸öÒâ˼£¬Ã¿Ò»Ðдú±íÒ»¸öʵÀý/ÿһÐÐÓÐΨһ¼ü/±íÄÚûÓÐÆäËü±íµÄ·ÇÖ÷¼üÐÅÏ¢£©
ÿ¸ö±íÓ¦¸ÃÓеÄ3¸öÓÐÓÃ×ֶΣ¨¼Ç¼´´½¨»ò¸üÐÂʱ¼ä/¼Ç¼´´½¨Õß/¼Ç¼°æ±¾£©
±ÜÃâ±£Áô×Ö
±íÓ¦±ÜÃâ¿ÉΪ¿ÕµÄÁÐ
ÃüÃû¹æ·¶
±í
±íÃûÈçOrder/UserAccout
·ûºÏÒÔϹ淶£º
1. ͳһ²ÉÓõ¥ÊýÐÎʽ£¬·´¶ÔOrders
2. Ê××Öĸ´óд£¬¶à¸öµ¥´ÊµÄ»°£¬µ¥´ÊÊ××Öĸ´óд£¬·´¶Ôorder/Useraccout/ORDER
3. ±ÜÃâÖÐÎÄÆ´Òô£¬·´¶ÔAgentBaoCi
4. ±ÜÃâÏ»®ÏßÁ¬½Ó£¬·´¶ÔUser_Accout£¨Ï»®ÏßÊÊÓÃOracleÊý¾Ý¿â£©
5. ±ÜÃâÃû³Æ¹ý³¤£¬·´¶ÔWebsiteInfomationModifyRecord
6. ¶à¶Ô¶à¹Øϵ±í£¬ÒÔMapping½á⣬ÈçUserRoleMapping
7. ±ÜÃâ±£Áô×Ö
×Ö¶Î
×Ö¶ÎÃûÈçuserID/userName/userType
·ûºÏÒÔϹ淶£º
1. Ê׸ö×ÖĸСд£¬¶à¸öµ¥´ÊµÄ»°£¬µ¥´ÊÊ××Öĸ´óд£¬·´¶ÔUserID/Userid
2. ±ØÐëÓÐÒ»Ö÷¼ü£¬Ö÷¼ü²»Ö±½ÓÓÃID£¬¶øÊDZíÃû+ID£¬ÈçuserID/orderID
3. ³£ÓõÄ×Ö¶Îname£¬²»Ö±½ÓÓÃname£¬¶øÊDZíÃû+Name£¬ÈçuserName/orderName
4. ³£ÓõÄ×Ö¶Îdesc£¬²»Ö±½ÓÓÃdesc£¬¶øÊDZíÃû+Desc£¬ÈçuserDesc/orderDesc
5. ´óд×Öĸǰ±ØÐë°üº¬ÖÁÉÙÁ½¸öСдµÄ×Öĸ£¬·´¶ÔuID/oID
6. ±ÜÃâÖÐÎÄÆ´Òô
7. ±ÜÃâÏ»®ÏßÁ¬½Ó
8. ±ÜÃâÃû³Æ¹ý³¤
9. ±ÜÃâ±£Áô×Ö
¶ÔÏó
1. ´æ´¢¹ý³ÌÒÔSP_Ϊǰ׺
2. ´¥·¢Æ÷ÒÔTR_Ϊǰ׺
3. º¯ÊýÒÔFN_Ϊǰ׺
4. Ö÷¼üÒÔPK_Ϊǰ׺
5. Ë÷ÒýÒÔIX_Ϊǰ׺
6. ǰ׺ºóµÄÊ××Öĸ´óд£¬¶à¸öµ¥´ÊµÄ»°£¬µ¥´ÊÊ××Öĸ´óд£¬ÈçSP_CountFee
7. ËùÓеĹؼü×ÖµÄËùÓÐ×Öĸ±ØÐë´óд£¬ÈçSELECT userID,username from User
Ïà¹ØÎĵµ£º
ϵͳ»·¾³£ºWindows 7
Èí¼þ»·¾³£ºVisual C++ 2008 SP1 +SQL Server 2005
±¾´ÎÄ¿µÄ£º±àдһ¸öº½¿Õ¹ÜÀíϵͳ
ÕâÊÇÊý¾Ý¿â¿Î³ÌÉè¼ÆµÄ³É¹û£¬ËäÈ»³É¼¨²»¼Ñ£¬µ«ÊÇ×÷ΪÎÒÓÃVC++ ÒÔÀ´±àдµÄ×î´ó³ÌÐò»¹ÊÇ´«µ½ÍøÉÏ£¬ÒÔ¹©²Î¿¼¡£ÓÃVC++ ×öÊý¾Ý¿âÉè¼Æ²¢²»ÈÝÒ×£¬µ«Ò²²»ÊDz»¿ÉÄÜ¡£ÒÔÏÂÊÇÎҵijÌÐò½çÃ棬ºóÃæ ......
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace BuildQuery
{
/// <summary>
/// ʹÓÃÌṩµÄÊý¾Ý½¨Á¢Ò»¸öSQL²éѯ
/// </summary>
public class BuildQuery
{
#region ÀàµÄ±äÁ¿
int numFieldsCount, ......
µÚÒ»²½:ÏÂÔØ°²×°Oracle 10g Release 2 ¿Í»§¶ËÈí¼þ,ÏÂÔØÁ¬½ÓÊÇ:
http://download.oracle.com/otn/nt/oracle10g/10201/10201_database_win32.zip
ÏÂÔغó°²×°
µÚ¶þ²½:ÏÂÔØ°²×°Oracle ODAC,ÏÂÔØÁ¬½ÓÊÇ:
http://download.oracle.com/otn/other/ole-oo4o/ODAC1020221.exe
µÚÈý²½: ÖØÆôMS SQ ......
ÈÕÖ¾ÎļþÂú¶øÔì³ÉSQLÊý¾Ý¿âÎÞ·¨Ð´ÈëÎļþʱ£¬¿ÉÓÃÁ½ÖÖ·½·¨£º
¡¡¡¡Ò»ÖÖ·½·¨£ºÇå¿ÕÈÕÖ¾¡£
¡¡¡¡1£®´ò¿ª²éѯ·ÖÎöÆ÷£¬ÊäÈëÃüÁî
¡¡¡¡DUMP TRANSACTION Êý¾Ý¿âÃû WITH NO_LOG
¡¡¡¡2.ÔÙ´ò¿ªÆóÒµ¹ÜÀíÆ÷--ÓÒ¼üÄãҪѹËõµÄÊý¾Ý¿â--ËùÓÐÈÎÎñ--ÊÕËõÊý¾Ý¿â--ÊÕËõÎļþ--Ñ¡ÔñÈÕÖ¾Îļþ--ÔÚÊÕËõ·½Ê½ÀïÑ¡ÔñÊÕËõÖÁXXM,ÕâÀï»á¸ø³öÒ»¸öÔÊÐíÊÕËõµ ......