亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? subqueriesregressiontest.java

?? mysql jdbc驅動程序 mysql jdbc驅動程序 mysql jdbc驅動程序 mysql jdbc驅動程序
?? JAVA
字號:
/* Copyright (C) 2002-2004 MySQL AB This program is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as  published by the Free Software Foundation. There are special exceptions to the terms and conditions of the GPL  as it is applied to this software. View the full text of the  exception in file EXCEPTIONS-CONNECTOR-J in the directory of this  software distribution. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */package testsuite.regression;import testsuite.BaseTestCase;/** * Tests SubQueries on MySQL > 4.1 *  * @author Mark Matthews * @version $Id: SubqueriesRegressionTest.java,v 1.1.2.1 2005/05/13 18:58:38 *          mmatthews Exp $ */public class SubqueriesRegressionTest extends BaseTestCase {	private final static int REPETITIONS = 100;	/**	 * 	 */	public SubqueriesRegressionTest(String name) {		super(name);	}	/*	 * (non-Javadoc)	 * 	 * @see junit.framework.TestCase#setUp()	 */	public void setUp() throws Exception {		// TODO Auto-generated method stub		super.setUp();	}	/*	 * (non-Javadoc)	 * 	 * @see junit.framework.TestCase#tearDown()	 */	public void tearDown() throws Exception {		// TODO Auto-generated method stub		super.tearDown();	}	/**	 * Runs all test cases in this test suite	 * 	 * @param args	 */	public static void main(String[] args) {		junit.textui.TestRunner.run(SubqueriesRegressionTest.class);	}	/**	 * DOCUMENT ME!	 * 	 * @throws Exception	 *             DOCUMENT ME!	 */	public void testSubQuery1() throws Exception {		if (versionMeetsMinimum(4, 1)) {			for (int i = 0; i < REPETITIONS; i++) {				createTables();				try {					this.rs = this.stmt							.executeQuery("select t3.colA from t3, t1 where t3.colA = 'bbbb' and t3.colB = t1.colA and exists (select 'X' from t2 where t2.colB = t1.colB)");					assertTrue(this.rs.next());					assertTrue("bbbb".equals(this.rs.getString(1)));					assertTrue(!this.rs.next());				} finally {					try {						if (this.rs != null) {							this.rs.close();						}					} finally {						dropTables();					}				}			}		}	}	/**	 * DOCUMENT ME!	 * 	 * @throws Exception	 *             DOCUMENT ME!	 */	public void testSubQuery2() throws Exception {		if (versionMeetsMinimum(4, 1)) {			for (int i = 0; i < REPETITIONS; i++) {				createTables();				try {					this.rs = this.stmt							.executeQuery("select t3.colA from t3, t1 where t3.colA = 'bbbb' and t3.colB = t1.colA and exists (select 'X' from t2 where t2.colB = 2)");					assertTrue(this.rs.next());					assertTrue("bbbb".equals(this.rs.getString(1)));					assertTrue(!this.rs.next());				} finally {					try {						if (this.rs != null) {							this.rs.close();						}					} finally {						dropTables();					}				}			}		}	}	/**	 * DOCUMENT ME!	 * 	 * @throws Exception	 *             DOCUMENT ME!	 */	public void testSubQuery3() throws Exception {		if (versionMeetsMinimum(4, 1)) {			for (int i = 0; i < REPETITIONS; i++) {				createTables();				try {					this.rs = this.stmt							.executeQuery("select * from t1 where t1.colA = 'efgh' and exists (select 'X' from t2 where t2.colB = t1.colB)");					assertTrue(this.rs.next());					assertTrue("efgh".equals(this.rs.getString(1)));					assertTrue("2".equals(this.rs.getString(2)));					assertTrue(!this.rs.next());				} finally {					try {						if (this.rs != null) {							this.rs.close();						}					} finally {						dropTables();					}				}			}		}	}	/**	 * DOCUMENT ME!	 * 	 * @throws Exception	 *             DOCUMENT ME!	 */	public void testSubQuery4() throws Exception {		// not really a subquery, but we want to have this in our testsuite		if (versionMeetsMinimum(4, 1)) {			for (int i = 0; i < REPETITIONS; i++) {				createTables();				try {					this.rs = this.stmt							.executeQuery("select colA, '' from t2 union select colA, colB from t3");					assertTrue(this.rs.next());					assertTrue("type1".equals(this.rs.getString(1)));					assertTrue("".equals(this.rs.getString(2)));					assertTrue(this.rs.next());					assertTrue("type2".equals(this.rs.getString(1)));					assertTrue("".equals(this.rs.getString(2)));					assertTrue(this.rs.next());					assertTrue("type3".equals(this.rs.getString(1)));					assertTrue("".equals(this.rs.getString(2)));					assertTrue(this.rs.next());					assertTrue("aaaa".equals(this.rs.getString(1)));					assertTrue("'" + this.rs.getString(2)							+ "' != expected of 'abcd'", "abcd".equals(this.rs							.getString(2)));					assertTrue(this.rs.next());					assertTrue("bbbb".equals(this.rs.getString(1)));					assertTrue("efgh".equals(this.rs.getString(2)));					assertTrue(this.rs.next());					assertTrue("cccc".equals(this.rs.getString(1)));					assertTrue("'" + this.rs.getString(2)							+ "' != expected of 'ijkl'", "ijkl".equals(this.rs							.getString(2)));					assertTrue(!this.rs.next());				} finally {					try {						if (this.rs != null) {							this.rs.close();						}					} finally {						dropTables();					}				}			}		}	}	/**	 * DOCUMENT ME!	 * 	 * @throws Exception	 *             DOCUMENT ME!	 */	public void testSubQuery5() throws Exception {		if (versionMeetsMinimum(4, 1)) {			for (int i = 0; i < REPETITIONS; i++) {				createTables();				try {					this.rs = this.stmt							.executeQuery("select t1.colA from t1, t4 where t4.colA = t1.colA and exists (select 'X' from t2 where t2.colA = t4.colB)");					assertTrue(this.rs.next());					assertTrue("abcd".equals(this.rs.getString(1)));					assertTrue(this.rs.next());					assertTrue("efgh".equals(this.rs.getString(1)));					assertTrue(this.rs.next());					assertTrue("ijkl".equals(this.rs.getString(1)));					assertTrue(!this.rs.next());				} finally {					try {						if (this.rs != null) {							this.rs.close();						}					} finally {						dropTables();					}				}			}		}	}	private void createTables() throws Exception {		this.stmt.executeUpdate("drop table if exists t1");		this.stmt.executeUpdate("drop table if exists t1");		this.stmt.executeUpdate("drop table if exists t2");		this.stmt.executeUpdate("drop table if exists t3");		this.stmt.executeUpdate("drop table if exists t4");		this.stmt				.executeUpdate("create table t1(colA varchar(10), colB decimal(3,0))");		this.stmt				.executeUpdate("create table t2(colA varchar(10), colB varchar(10))");		this.stmt				.executeUpdate("create table t3(colA varchar(10), colB varchar(10))");		this.stmt				.executeUpdate("create table t4(colA varchar(10), colB varchar(10))");		this.stmt				.executeUpdate("insert into t1 values ('abcd', 1), ('efgh', 2), ('ijkl', 3)");		this.stmt				.executeUpdate("insert into t2 values ('type1', '1'), ('type2', '2'), ('type3', '3')");		this.stmt				.executeUpdate("insert into t3 values ('aaaa', 'abcd'), ('bbbb', 'efgh'), ('cccc', 'ijkl')");		this.stmt				.executeUpdate("insert into t4 values ('abcd', 'type1'), ('efgh', 'type2'), ('ijkl', 'type3')");	}	private void dropTables() throws Exception {		this.stmt.executeUpdate("drop table if exists t1");		this.stmt.executeUpdate("drop table if exists t1");		this.stmt.executeUpdate("drop table if exists t2");		this.stmt.executeUpdate("drop table if exists t3");		this.stmt.executeUpdate("drop table if exists t4");	}}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
av一区二区三区在线| 精品国免费一区二区三区| 国产日韩高清在线| 精品亚洲免费视频| 日韩欧美激情在线| 奇米影视一区二区三区| 欧美人与性动xxxx| 亚洲成人av在线电影| 3d成人动漫网站| 麻豆精品久久久| 久久色在线视频| caoporn国产精品| 亚洲激情图片qvod| 欧美伦理影视网| 男女视频一区二区| 久久精品人人做人人爽人人| 毛片基地黄久久久久久天堂| 日韩午夜三级在线| 国产99久久久国产精品潘金网站| 亚洲少妇屁股交4| a级高清视频欧美日韩| 一区二区成人在线| 精品国产污污免费网站入口| 国产v综合v亚洲欧| 午夜欧美一区二区三区在线播放 | 中文字幕精品综合| 色综合天天综合狠狠| 美腿丝袜在线亚洲一区| 欧美国产一区视频在线观看| 在线观看亚洲精品视频| 精油按摩中文字幕久久| 亚洲综合免费观看高清在线观看| 欧美一级黄色大片| av毛片久久久久**hd| 美国av一区二区| 亚洲国产精品一区二区www在线 | 欧美国产日产图区| 欧美精品免费视频| 91成人在线免费观看| 国产高清精品网站| 日韩欧美不卡一区| 国产在线播精品第三| 国产精品乱码一区二区三区软件| 欧美一级二级三级乱码| av激情综合网| 成熟亚洲日本毛茸茸凸凹| 久久精品国产999大香线蕉| 亚洲成人免费电影| 亚洲一区二区3| 亚洲婷婷综合久久一本伊一区 | www.久久久久久久久| 国产资源在线一区| 久久99日本精品| 久久99国产精品成人| 日韩1区2区3区| 久草在线在线精品观看| 日本成人中文字幕在线视频| 六月丁香综合在线视频| 久久av资源站| 懂色av中文字幕一区二区三区| 狠狠色狠狠色合久久伊人| 久久国产人妖系列| 丰满亚洲少妇av| 91激情五月电影| 欧美日韩免费观看一区三区| 欧美一区二区免费| 欧美精品一区二区在线观看| 国产欧美日韩在线| 国产精品久久久久桃色tv| 亚洲综合激情另类小说区| 日本aⅴ免费视频一区二区三区 | 中文字幕不卡三区| 中文字幕av一区二区三区| 亚洲男人的天堂av| 日韩激情一二三区| 成人ar影院免费观看视频| 91免费小视频| www国产成人| 亚洲国产精品久久久男人的天堂 | 亚洲国产精品成人综合色在线婷婷| 国产精品欧美精品| 免费成人av在线播放| 99视频在线观看一区三区| 日韩一区二区三区四区五区六区| 中文字幕的久久| 国产一区免费电影| 欧美电影免费观看高清完整版在线 | 日韩免费高清av| 成人免费在线视频观看| 狠狠狠色丁香婷婷综合久久五月| 99精品欧美一区二区三区小说 | 亚洲综合一区二区| 亚洲午夜在线观看视频在线| 激情文学综合插| 欧美精品一二三区| 一二三区精品福利视频| 成人一区在线看| 久久久久久久久一| 国产九九视频一区二区三区| 欧美日韩国产片| 亚洲18影院在线观看| 欧美羞羞免费网站| 亚洲综合成人在线视频| 99久久精品免费看| 亚洲国产高清在线观看视频| 丁香婷婷综合色啪| 国产精品伦理在线| 91老师国产黑色丝袜在线| 亚洲视频在线观看三级| 91视频观看视频| 夜夜爽夜夜爽精品视频| 欧美日韩国产另类不卡| 日日欢夜夜爽一区| 久久综合久久久久88| 成人黄色av网站在线| 亚洲欧美另类在线| 91精品久久久久久蜜臀| 久久99日本精品| 亚洲蜜桃精久久久久久久| 欧美猛男男办公室激情| 九九**精品视频免费播放| 国产精品免费aⅴ片在线观看| 97se亚洲国产综合自在线不卡 | 69av一区二区三区| 福利一区福利二区| 午夜精品久久久| 国产精品情趣视频| 日韩欧美一级片| 97久久超碰国产精品| 精品一区二区三区在线观看| 中文字幕日韩av资源站| 精品裸体舞一区二区三区| 色综合久久综合网| 国产精品一品二品| 青青国产91久久久久久| 亚洲午夜在线电影| 中文字幕一区在线观看| 久久综合久久综合亚洲| 欧美日本一区二区在线观看| 不卡的av网站| 国产69精品一区二区亚洲孕妇| 日本成人在线不卡视频| 国产主播一区二区三区| 亚洲免费伊人电影| 国产精品久久三| 日韩一区在线看| 一区在线观看免费| 中文字幕中文在线不卡住| 国产日韩欧美麻豆| 久久精品欧美一区二区三区麻豆| 日韩午夜小视频| 欧美成va人片在线观看| 欧美一卡二卡在线观看| 日韩午夜在线观看视频| 久久综合九色综合欧美98| 久久色在线观看| 国产女人18水真多18精品一级做| 久久精品在这里| 17c精品麻豆一区二区免费| 亚洲人成网站影音先锋播放| 一区二区日韩电影| 国产婷婷色一区二区三区在线| 欧美欧美午夜aⅴ在线观看| 欧美精品一二三| 2021久久国产精品不只是精品| 日韩女优av电影在线观看| 久久精品一区二区三区av| 亚洲欧美另类久久久精品| 亚洲人成人一区二区在线观看| 亚洲小说春色综合另类电影| 丝袜美腿一区二区三区| 国产剧情一区在线| 色综合天天综合| 久久伊人中文字幕| 一区二区三区在线视频免费观看| 天堂午夜影视日韩欧美一区二区| 韩国欧美国产1区| 欧美三级视频在线| 欧美激情一区二区在线| 午夜激情一区二区三区| 成人免费视频一区| 精品国产伦理网| 亚洲综合色网站| 国产精品羞羞答答xxdd| 91麻豆精品国产自产在线观看一区 | 午夜精品影院在线观看| 成人av在线影院| 欧美—级在线免费片| 美女网站色91| 欧美日韩激情在线| 亚洲一区自拍偷拍| 一本一道波多野结衣一区二区 | 欧美三级三级三级| 亚洲久草在线视频| av中文字幕一区| 国产精品免费av| 成人毛片视频在线观看| 日本一区二区三区国色天香 | 成人av网站在线观看免费| 欧美变态口味重另类|