2021年11月11日

mysql 主键和事务

摘要: 新建一个没有指定主键的表 CREATE TABLE `tb` ( `name` varchar(10) DEFAULT '', `age` int(20) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1 insert into tb(name, 阅读全文

posted @ 2021-11-11 21:23 coding-farmer 阅读(99) 评论(0) 推荐(0) 编辑

jquery ajax

摘要: 1 $.ajax({ 2 type: 'post', 3 url: "/xxx/yyy?id=1", 4 data: { 5 start: start, 6 end: end 7 }, 8 dataType: "JSON", 9 success: function (data) { 10 var b 阅读全文

posted @ 2021-11-11 18:19 coding-farmer 阅读(22) 评论(0) 推荐(0) 编辑

mysql 导出导入

摘要: 1,select ... into outfile 文件保存再db服务器上 SHOW VARIABLES LIKE "secure_file_priv"; 查出导入文件的可以保存的目录+ + +| Variable_name | Value |+ + +| secure_file_priv | /v 阅读全文

posted @ 2021-11-11 18:18 coding-farmer 阅读(21) 评论(0) 推荐(0) 编辑

2021年10月14日

pandas df

摘要: import numpy as np import pandas as pd s = pd.Series([1, 3, 5, np.nan, 6, 8]) # print(s) dates = pd.date_range('20130101', periods=6) # print(dates) d 阅读全文

posted @ 2021-10-14 10:46 coding-farmer 阅读(70) 评论(0) 推荐(0) 编辑

2021年7月1日

select2

摘要: <html> <head> <link href="./select2.min.css" rel="stylesheet" /> <script src="./jquery.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/sel 阅读全文

posted @ 2021-07-01 17:13 coding-farmer 阅读(32) 评论(0) 推荐(0) 编辑

2020年12月9日

python 使用DBUtils, ModuleNotFoundError: No module named 'DBUtils'

摘要: 执行时提示没有DBUtils模块 pip install DBUtils 显示已经安装,再执行还是提示没有DBUtils模块 ModuleNotFoundError: No module named 'DBUtils pip list 发现版本是2.0 重新安装低版本 pip install DBU 阅读全文

posted @ 2020-12-09 14:56 coding-farmer 阅读(1056) 评论(0) 推荐(0) 编辑

2020年12月1日

php8编译安装

摘要: wget https://www.php.net/distributions/php-8.0.0.tar.gz tar zxvf php-8.0.0.tar.gz cd php-8.0.0 ./configure --prefix=/usr/local/php --with-config-file- 阅读全文

posted @ 2020-12-01 15:16 coding-farmer 阅读(1516) 评论(0) 推荐(0) 编辑

2020年9月18日

win10VBox安装CentOS虚拟机,安装VBoxGuestAdditions,配置共享文件夹,虚拟磁盘扩容

摘要: 一,环境: win10 +centos7 +VirtualBox 版本 6.1.14 r140239 (Qt5.6.2) +VBoxGuestAdditions_6.1.14.iso(http://download.virtualbox.org/virtualbox/6.1.14/VBoxGuest 阅读全文

posted @ 2020-09-18 15:42 coding-farmer 阅读(368) 评论(0) 推荐(0) 编辑

2020年8月23日

php新手注意事项

摘要: 1, $a = [1,2,3,5]; foreach($a as &$item){ echo $item . ','; } foreach($a as $item){ echo $item . ','; } exit; //1,2,3,5,1,2,3,3, 2,PHP Version 5.6.9、 阅读全文

posted @ 2020-08-23 16:10 coding-farmer 阅读(82) 评论(0) 推荐(0) 编辑

2020年7月9日

php json_encode 会把中文转成unicode编码

摘要: 解决方案1 利用 urlencode 和 urldecode 方法绕过这个转码为 unicode 的过程 header("Content-Type: text/html;charset=utf-8");$arr = array ('lang'=>urlencode('我是中文'));echo url 阅读全文

posted @ 2020-07-09 14:23 coding-farmer 阅读(229) 评论(0) 推荐(0) 编辑

导航