您的位置:程序门 -> java -> j2ee / ejb / jms



这样的sql语句,不是很明白!(struts+hibernate)


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


这样的sql语句,不是很明白!(struts+hibernate)[已结贴,结贴人:suiyuan168]
发表于:2007-07-31 07:05:06 楼主
from   student   as   stu   where   stu.name=:stuname   and   stu.password=:stupassword

麻烦各位详解一下!
发表于:2007-07-31 07:39:561楼 得分:8
应来自应用程序的sql语句
from   student   as   stu   where   stu.name=:stuname   and   stu.password=:stupassword
给student取别名stu
      :stuname来自外部
发表于:2007-07-31 08:23:252楼 得分:0
谢谢楼上的讲解,明白了!
发表于:2007-07-31 08:47:123楼 得分:0
还有没有要补充的,偶要结帖了!
发表于:2007-07-31 09:06:224楼 得分:8
相当于jdbc中的select   *   from   student   as   stu   where   stu.name=?   and   stu.password=?
发表于:2007-07-31 09:17:375楼 得分:4
这个是hql吧,嘻嘻,我也来学习下
发表于:2007-07-31 09:59:406楼 得分:0
是的,好的我结帖了!大家努力!


快速检索

最新资讯
热门点击