GithubHelp home page GithubHelp logo

chatroom's Introduction

SQL 增删改查

增:INSERT INTO 表(字段列表) VALUES(值) eg:

INSERT INTO user_table (username,password,online) VALUES('lolita','888888',0)

删:DELETE FROM 表 WHERE 条件 eg:

DELETE FROM user_table WHERE ID=1

改:UPDATE 表 SET 字段=新值,字段=新值 ..... WHERE 条件 eg:

UPDATE user_table SET password='555555' WHERE ID=2

查:SELECT 字段列表 FROM 表 WHERE 条件 eg:

SELECT username,online FROM user_table WHERE ID=1

接口:

用户注册: /reg?user=xxx&pass=xxx

返回消息:{'code':0,'msg':'信息'}

用户登录: /login?user=xxx&pass=xxx

返回消息:{'code':0,'msg':'信息'}

有两种请求,一种是请求文件,一种是请求接口

请求文件:

/1.html
/1.js

请求接口:

/reg?
/login?

ws请求接口: 'reg',user,pass => 'reg_ret' ,code msg 'login',user,pass => 'login_ret',code,msg 'msg', txt => 'msg_ret',code,msg => 'msg',name,txt

chatroom's People

Contributors

dcbryant avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.