阅读背景:

SQL:返回用户的最新操作列表

来源:互联网 

I have a table as follows:

我有一张表如下:

CREATE TABLE useractions
(
    id INT PRIMARY KEY NOT NULL AUTO_INCREMENT,
    user_id INT,
    modified BIGINT, //this is the time of the action in milliseconds
    status INT,      // 1 = placed, 2 = processing ,3 = shipping or 4 = completed, 5 = failed
    action_id INT    // 1 = buy, 2 = sell, 3 = exchange, etc
);
CREATE 



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: