琐事笔记
还是经常会忘记一些事情,毕竟是大脑内存容量有限啊
一、rails
1、rails中 url 和 path的区别
def index p users_path p users_urlend
"/users""http://127.0.0.1:3000/users"
# 定义一个方法def hello # 打印hello p "hello"end
=begin def hello p 'world' end=end
select * from table_name where datediff('时间一','时间二') > 0show variables like 'log_error';
show [session|global] status
mysqladmin extended-status
show full processlist;show processlist;
show create table 表名;