如题,用SQL语句失失败,用HQL有什么办法实现吗?
如果是SQLSERVER 可以这样写
SELECT name FROM syscolumnswhere id = (SELECT id FROM sysobjects WHERE name = 'table')