We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ALTER TABLE promote_idfa add COLUMN impId VARCHAR(255) COMMENT 'impId'; ALTER TABLE promote_idfa add COLUMN ua VARCHAR(255) COMMENT 'ua';
The text was updated successfully, but these errors were encountered:
sql
获取当前时间戳 select unix_timestamp(); 获取指定时间的时间戳 select unix_timestamp('2013-01-01 10:10:10');
select unix_timestamp();
select unix_timestamp('2013-01-01 10:10:10');
将时间戳转化成日期 select from_unixtime(1355272360); => 2012-12-12 08:32:40 将时间戳转化成日期,指定格式 select from_unixtime(1355272360,'%Y%m%d');
select from_unixtime(1355272360);
2012-12-12 08:32:40
select from_unixtime(1355272360,'%Y%m%d');
Sorry, something went wrong.
mysql处理四舍五入 SELECT FORMAT(12332.123456, 4); => 12,332.1235 会直接将数据加上‘,’ 如果不需要 则需要 select convert(4545.1366,decimal);这样处理
mysql
SELECT FORMAT(12332.123456, 4);
select convert(4545.1366,decimal);
No branches or pull requests
The text was updated successfully, but these errors were encountered: