set 字段1=值, 字段2=值2 where 条件
查询
select name, age, sex from 表名
高级查询
where 条件
并且 and where id >...表 B on 表A.字段=表B.字段 where 条件
5-PHP操作mySql 相关api
连接数据库 mysqli_connect( ip, 用户名, 密码, 数据库, 端口号 );
准备 sql...error: function() { .... },
complete: function() { .... } // 不管成功或者失败都会调用
})
//2-beforeSend如何终止请求...返回函数调用, 将json数据作为参数返回
真实开发过程中: 前端使用 jquery 中封装好的 jsonp
$.ajax({
type: "get",
dataType: '...1- 根据查找条件,向后台发送ajax请求
2- 后台根据条件返回对应的数据
3- 前端根据返回数据格式解析数据 xml json
4- 准备模板引擎,把数据渲染到页面中