用servlet+jsp+json怎么做接口

2024-11-23 04:37:53
推荐回答(2个)
回答1:

以升序或降序显示选定的记录:
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数据库,创建用户,刷新权限:

回答2:

请求servlet,返回json数据,不需要jsp页面