求SQL語句自動生成器VB源碼
不用自己寫SQL去數據庫存取對象。
你的代碼僅僅和對象關聯,自動產生SQL語句,并確保對象提交到正確的表和字段中去. 只要設計好數據庫自動生成工廠模式的3層結構代碼。 http://**downloads92/sourcecode/app/* 這個程序是用來比較csv文件, 然后自動生成sql語句, 運行命令是runGenText csv1 csv2 /* * Created on Aug 31, 2004 * * TODO To change the template for this generated file go to * Window - Preferences - Java - Code Style - Code Templates */ import *SVParser; import *ption; import *tFoundException; import *ader; import *tion; import *; import *Manager; import *edStatement; import *eption; import *; /** * @author jmorrey * * TODO To change the template for this generated type comment go to * Window - Preferences - Java - Code Style - Code Templates */ public class GenerateGTEXTSQL { public static void main(String[] args) { String srcFile1 = ""; String srcFile2 = ""; FileReader fileRead1 = null; FileReader fileRead2 = null; String[][] srcArray1; String[][] srcArray2; int srcp = 0; int dstp = 0; try{ srcFile1 = args[0]; srcFile2 = args[1]; } catch (Exception exe){ *n("usage: java GenerateGTEXTSQL [srcFile1] [srcFile2]"); *(-1); } try{ fileRead1 = new FileReader(srcFile1); fileRead2 = new FileReader(srcFile2); } catch (FileNotFoundException exception){ *n("The " + srcFile1 + " file is missing from the current working directory."); *(-1); } try{ srcArray1 = *(fileRead1); srcArray2 = *(fileRead2); int len1 = *; int len2 = *; //for (int i=0;i
VF 中如何使用查詢設計器生成SQL語句
1、先要建立要查詢的一個或兩個基本表。這個你應該會。
2、點擊工具,向導,查詢向導。
3、選擇要查詢的表和字段。下一步。
4、選擇篩選條件,一般兩表聯接要有關鍵字段。下一步或完成。
5、選擇排序方法。下一步或完成。
6、預覽查詢是否為想要的結果。如果是,就選擇保存到查詢并在查詢設計器中修改。
7、點擊保存。然后就打開了查詢設計器。
8、OK! 點擊查詢設計器工具窗口上的SQL按扭,你就看到了SQL查詢語句。復制出來粘到相應的位置即可。
另外,可以通過MODI QUERY 命令直接打開查詢設計器。