Oracle日期格式转换 日期转化为字符串 (以2016年10月20日为例) select to_char(sysdate,'yyyy-mm-dd hh24:mi:ss') strDateTime from dual; --获取年-月-日 时:分:秒 --显示结果为:2016-10-20 12:35 ...
分类:
其他好文 时间:
2020-08-20 18:15:19
阅读次数:
72
int height(struct TreeNode* root) { if (root == NULL) { return 0; } else { return fmax(height(root->left), height(root->right)) + 1; } } bool isBalanc ...
分类:
其他好文 时间:
2020-08-19 19:58:57
阅读次数:
65
/** * 接受微信好友发来聊天消息 * @author wechatno:tangjinjinwx * @param ctx * @param vo */ @Async public void handleMsg(ChannelHandlerContext ctx, TransportMessag ...
分类:
微信 时间:
2020-08-19 19:56:40
阅读次数:
123
You are installing a billboard and want it to have the largest height. The billboard will have two steel supports, one on each side. Each steel suppor ...
分类:
其他好文 时间:
2020-08-19 19:53:32
阅读次数:
69
//匹配所有 //var reg=/./; //匹配数字 //var reg=/\d/; //匹配非数字 //var reg=/\D/; //匹配字母数字下划线 //var reg=/\W/; //匹配def var reg=/[^0-9]/; //定义字符串 var str="abc"; //判断 ...
分类:
其他好文 时间:
2020-08-19 19:22:12
阅读次数:
80
apache限制用户访问的方法:限制客户端、访问需要用户名密码认证 用户认证的步骤:1.配置服务器上的那些资源被保护、指定用户访问;2.创建密码文件,加入允许访问的用户 1、编辑主配置文件 因为.htaccess文件的生效与否,取决于AllowOverride属性 AllowOverride参数: ...
分类:
Web程序 时间:
2020-08-19 19:15:10
阅读次数:
93
class Fraction { public: Fraction(int num,int den=1):m_numerator(num),m_denominator(den) { cout << "构造函数被默默调用了哦!!!" << endl; } ~Fraction(){ cout << "析 ...
分类:
其他好文 时间:
2020-08-19 19:12:19
阅读次数:
51
帮助命令 docker version # 显示docker的版本信息 docker info # 显示docker的系统信息,包括镜像和容器的数量 docker 命令 --help # 帮助命令 帮助文档的地址:https://docs.docker.com/engine/reference/ru ...
分类:
其他好文 时间:
2020-08-18 14:08:01
阅读次数:
91
压缩文件,可以节省磁盘空间,在传输过程中还能节省网络带宽;打包文件,将一个目录合并成一个文件;常见压缩文件后缀名有:.gz:表示由gzip压缩工具压缩的文件;.bz2:表示由bzip2压缩工具压缩的文件;.xz:表示由xz压缩工具压缩的文件;.zip:表示由zip压缩工具压缩的文件;.tar:表示由tar打包程序打包的文件;.tar.gz:先tar打包,然后再gzip压缩的文件;.tar.bz2:
分类:
其他好文 时间:
2020-08-18 13:48:26
阅读次数:
89
Mysql 8.0 ERROR 1064 (42000)
分类:
数据库 时间:
2020-08-18 13:43:11
阅读次数:
81