public boolean updateStatment(String stat) {
		StringTokenizer str = new StringTokenizer(stat);
		if (!str.hasMoreTokens())
			return false;

		String firstWord = str.nextToken();

		if (firstWord.equalsIgnoreCase("update")) {
			if (!str.hasMoreTokens())
				return false;

			tableName = str.nextToken();
			if (!str.hasMoreTokens())
				return false;

			String thirdWord = str.nextToken();

			if (thirdWord.equalsIgnoreCase("set")) {
				// parameter
				String fieldName = "", value = "";
				entries.clear();
				String line = "";
				while (str.hasMoreTokens()) {
					String word = str.nextToken();

					if (word.equalsIgnoreCase("where")) {
						break;
					}
					line += word;

				}
				line = line.replaceAll("'", "").replaceAll("\"", "")
						.replace(";", "");
				boolean check = getvar2(line);
				if (!check) {
					return false;
				}
				line = "";
				while (str.hasMoreTokens()) {
					line += str.nextToken();
				}
				line = line.replaceAll("'", "").replaceAll("\"", "")
						.replace(";", "");
				check = getvar(line);
				// fieldName=str.nextToken();
				// String relation = str.nextToken();
				// value = str.nextToken().replaceAll("'", "").replaceAll("\"",
				// "");
				// entry=new Field(fieldName,value,relation.charAt(0));
				return check;

			}

		}

		return false;

	}