需要的朋友可以把下面这段代码拷贝过去使用,保存成网页格式即可,全国31个省的所有市县都有<html><head><title>省市县关联菜单</title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><style>body,select{font-size:9pt;font-family:Verdana;}a{color:red;text-decoration:none;}a:hover{text-decoration:underline;}</style><SCRIPT LANGUAGE="JavaScript"><!--function Dsy(){this.Items = {};}Dsy.prototype.add = function(id,iArray){this.Items[id] = iArray;}Dsy.prototy...
例如对于TUser类 1.实体查询 String hql = " from TUser"; 执行这条语句会返回TUser以及TUser子类的纪录。 注: 如果 TUser 类具有外键, 查询会报错! 解决方法: select 别名.属性 from 类 as 别名. 没有别名.属性仍然报错! hql = "from java.lang.Object" 会返回数据库中所有库表的纪录。 where 语句 hql = "from TUser as user where user.name='yyy'"; 其中,as可以省略也一样 hql = "from TUser user where user.name='yyy'"; where子句中,我们可以通过比较运算符设定条件,如: =, <>, >, <, >=, <=, between, not between, in, not in, is, like等。 2.属性查询...