select *
对于select * 会降低效率这一点能详细的说一说嘛
对于select * 会降低效率这一点能详细的说一说嘛
2018-04-20
建议养成 写字段名的好习惯
下面 给你个例子:
<sql id="SysUserDefineJoins">
a.id AS "id",
a.name AS "name",
a.login_name AS "loginName",
a.login_password AS "loginPassword",
a.create_time AS "createTime",
a.update_time AS "updateTime"
</sql>
<select id="getUser" resultType="com.webpu.m.entity.SysUser">
SELECT
<include refid="SysUserDefineJoins"/>
FROM sys_user a
WHERE a.id = #{id}
</select>
举报