摘要: substring方法返回位于String对象中指定位置的子字符串。strVariable.substring(start,end)"String Literal".substring(start,end)参数start指明子字符串的起始位置,该索引从 0 开始起算。end指明子字符串的结束位置,该索引从 0 开始起算。说明substring方法将返回一个包含从start到最后(不包含end)的子字符串的字符串。substring方法使用start和end两者中的较小值作为子字符串的起始点。例如,strvar.substring(0, 3)和strvar.substring 阅读全文
posted @ 2010-12-20 16:48 xwdreamer 阅读(459) 评论(0) 推荐(0) 编辑
摘要: select * from table where Condition1 and Condition2 or Condition3如果我们要搜索表table中满足Condition1且满足Condition2和Conditon3中其中一个的时候,我们使用上述语句是错误的,因为关系型运算符优先级高低为:not>and>or,因此上面执行顺序为:select * from table where (Condition1 and Condition2) or Condition3也就是是说这条语句会去查询那些同时满足Condit... 阅读全文
posted @ 2010-12-20 16:37 xwdreamer 阅读(1495) 评论(0) 推荐(0) 编辑