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

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

?? subqueriesregressiontest.java

?? 用于JAVA數據庫連接.解壓就可用,方便得很
?? 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 {		super.setUp();		createTables();	}	/*	 * (non-Javadoc)	 * 	 * @see junit.framework.TestCase#tearDown()	 */	public void tearDown() throws Exception {		dropTables();				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++) {				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 {					if (this.rs != null) {						this.rs.close();					}				}			}		}	}	/**	 * DOCUMENT ME!	 * 	 * @throws Exception	 *             DOCUMENT ME!	 */	public void testSubQuery2() throws Exception {		if (versionMeetsMinimum(4, 1)) {			for (int i = 0; i < REPETITIONS; i++) {				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 {					if (this.rs != null) {						this.rs.close();					}				}			}		}	}	/**	 * DOCUMENT ME!	 * 	 * @throws Exception	 *             DOCUMENT ME!	 */	public void testSubQuery3() throws Exception {		if (versionMeetsMinimum(4, 1)) {			for (int i = 0; i < REPETITIONS; i++) {				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 {					if (this.rs != null) {						this.rs.close();					}				}			}		}	}	/**	 * 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++) {				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 {					if (this.rs != null) {						this.rs.close();					}				}			}		}	}	/**	 * DOCUMENT ME!	 * 	 * @throws Exception	 *             DOCUMENT ME!	 */	public void testSubQuery5() throws Exception {		if (versionMeetsMinimum(4, 1)) {			for (int i = 0; i < REPETITIONS; i++) {				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 {					if (this.rs != null) {						this.rs.close();					}				}			}		}	}	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一区二区三区免费野_久草精品视频
一级中文字幕一区二区| 午夜精品久久久久久久99水蜜桃| 91免费看片在线观看| 美女www一区二区| 亚洲天堂网中文字| 精品国产免费一区二区三区四区| 色av综合在线| 岛国精品一区二区| 蜜臀av性久久久久蜜臀aⅴ流畅| 日韩毛片视频在线看| 精品黑人一区二区三区久久| 欧美性色黄大片手机版| 99久久精品99国产精品| 国产中文字幕精品| 日韩国产高清影视| 亚洲一区二区偷拍精品| 中文字幕精品一区| 国产亚洲午夜高清国产拍精品 | 国产麻豆视频精品| 亚洲成人一区在线| 亚洲精品综合在线| 国产精品素人视频| 精品国产乱码久久| 日韩欧美在线综合网| 欧美精品丝袜久久久中文字幕| 91一区二区在线观看| 国产不卡在线播放| 国产福利精品一区| 国产精品性做久久久久久| 久久精品国产秦先生| 日韩不卡一二三区| 视频精品一区二区| 日韩和欧美的一区| 天堂在线亚洲视频| 五月婷婷色综合| 午夜精品久久久久久久久久久| 亚洲综合免费观看高清完整版在线| 国产精品免费看片| 国产精品美女久久久久久久久| 久久精品视频一区二区三区| 国产婷婷色一区二区三区| 欧美videossexotv100| 欧美成人猛片aaaaaaa| 日韩欧美你懂的| 精品国产自在久精品国产| 日韩欧美色综合| 欧美大胆一级视频| 久久久精品蜜桃| 国产精品视频看| 亚洲欧洲精品成人久久奇米网| 中文字幕一区二区在线播放| 18欧美乱大交hd1984| 亚洲欧美日韩国产手机在线 | 日韩av电影天堂| 日韩福利视频导航| 极品少妇一区二区| 国产成人精品一区二区三区网站观看| 国产aⅴ综合色| aaa欧美日韩| 欧美无乱码久久久免费午夜一区| 欧美视频日韩视频在线观看| 69堂精品视频| 久久精品欧美一区二区三区麻豆| 国产精品久久久一本精品| 亚洲精品亚洲人成人网| 日欧美一区二区| 精品一区二区三区香蕉蜜桃 | 在线视频欧美精品| 欧美精三区欧美精三区| 日韩一区二区三区四区| 欧美国产视频在线| 亚洲第一精品在线| 久久精品国产网站| 一本久久精品一区二区| 91精品黄色片免费大全| 国产精品国产三级国产专播品爱网 | 激情五月激情综合网| jlzzjlzz亚洲日本少妇| 欧美精品久久一区二区三区| 国产欧美一区视频| 亚洲夂夂婷婷色拍ww47| 国产乱人伦偷精品视频不卡| 色天使色偷偷av一区二区| 欧美不卡视频一区| 亚洲免费视频中文字幕| 激情图片小说一区| 日本精品视频一区二区三区| 精品久久久久久无| 亚洲一区影音先锋| 成人午夜激情在线| 3d动漫精品啪啪一区二区竹菊| 国产婷婷色一区二区三区| 天天色天天爱天天射综合| 福利一区福利二区| 日韩欧美中文一区| 亚洲精品视频一区| 国产精品一区二区免费不卡| 在线成人免费视频| 亚洲欧美综合网| 国模套图日韩精品一区二区 | 欧美mv日韩mv亚洲| 一区二区三区精密机械公司| 国产精品 日产精品 欧美精品| 欧美私人免费视频| 国产精品美女久久久久久久| 国内外精品视频| 欧美日韩精品一二三区| 亚洲色欲色欲www| 高清不卡在线观看| 精品国产免费人成电影在线观看四季| 一区二区三区四区高清精品免费观看| 国产高清精品久久久久| 欧美一级视频精品观看| 亚洲高清免费观看高清完整版在线观看| 国产精品99久久久久久宅男| 欧美一区二区黄| 婷婷久久综合九色国产成人| 欧洲生活片亚洲生活在线观看| 欧美国产精品一区二区三区| 经典三级一区二区| 日韩一本二本av| 日韩黄色片在线观看| 欧美日韩精品综合在线| 亚洲一区二区高清| 91黄色免费版| 亚洲欧美日韩中文字幕一区二区三区| 国产mv日韩mv欧美| 国产精品视频免费看| 成人激情校园春色| 成人免费在线视频观看| 成人伦理片在线| 国产精品久久久久影院老司| 成人午夜视频免费看| 国产精品国产三级国产三级人妇| 国产精品一区二区视频| 国产色婷婷亚洲99精品小说| 国产白丝精品91爽爽久久| 欧美国产丝袜视频| 97久久精品人人澡人人爽| 中文字幕欧美一| 91视视频在线直接观看在线看网页在线看| 中文字幕一区二区不卡| 91视频免费播放| 亚洲在线观看免费| 91 com成人网| 久草中文综合在线| 久久久久99精品国产片| 成人黄页在线观看| 亚洲精品视频自拍| 555夜色666亚洲国产免| 黄色资源网久久资源365| 久久久久久久网| 99久久精品99国产精品| 亚洲午夜电影在线观看| 91精品在线麻豆| 国内精品视频666| 中文字幕一区av| 欧美色网一区二区| 蜜桃av噜噜一区二区三区小说| 精品日韩99亚洲| 成人黄色免费短视频| 一区二区三区91| 日韩无一区二区| 高清免费成人av| 亚洲成人av电影在线| 精品久久久久一区| 91丨九色丨尤物| 免费高清在线视频一区·| 久久久高清一区二区三区| 91视视频在线观看入口直接观看www | 91麻豆高清视频| 午夜不卡在线视频| 久久久国产精品午夜一区ai换脸| 91一区二区三区在线播放| 肉肉av福利一精品导航| 欧美经典一区二区| 欧美亚洲一区三区| 国产精品自拍毛片| 一区二区三区免费观看| 精品人在线二区三区| 97se亚洲国产综合自在线观| 日本 国产 欧美色综合| 中文字幕亚洲欧美在线不卡| 67194成人在线观看| 91污片在线观看| 国内精品伊人久久久久影院对白| 亚洲男同性视频| 久久久亚洲午夜电影| 欧美日韩成人综合在线一区二区 | 紧缚奴在线一区二区三区| 亚洲欧美另类小说| 精品国产麻豆免费人成网站| 色八戒一区二区三区| 东方aⅴ免费观看久久av| 三级欧美韩日大片在线看| 亚洲色图一区二区| 久久婷婷成人综合色| 91麻豆精品国产自产在线| 91一区二区在线观看| 国产不卡高清在线观看视频|