以升序或降序显示选定的记录:
mysql> SELECT [col1],[col2] FROM [table name] ORDER BY [col2] DESC;
返回行数:
mysql> SELECT COUNT(*) FROM [table name];
统计指定列值的总和:
mysql> SELECT SUM(*) FROM [table name];
联结表:
mysql> select lookup.illustrationid, lookup.personid,person.birthday from lookup left join person on lookup.personid=person.personid=statement to join birthday in person table with primary illustration id;
新建一个用户:以root登录:切换到mysql数据库,创建用户,刷新权限:
请求servlet,返回json数据,不需要jsp页面