有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!


共 (1) 个答案

  1. # 1 楼答案

    MySQL和HQL都支持CAST()函数,因此您可以将查询重写为:

    select * 
    from students 
    where CAST(sid as binary) = CAST('s001' as binary) 
    

    会议记录。get()您需要使用@LoaderHibernate自定义注释。你可以在这里找到关于@Loader usage的更多信息