2018年4月13日
摘要: 不同的操作系统回车换行符定义是不一样的,如果你跟我一样记不住,crlf几个字段的含义的话,记录下来就非常有必要了 win \r\n CRLF ASCII 13 carriage return/line feed linux/unix \n CR ASCII 13 carriage return Ma 阅读全文
posted @ 2018-04-13 21:40 im5437 阅读(232) 评论(0) 推荐(0) 编辑
  2016年10月28日
摘要: MySQL添加字段的方法并不复杂,下面将为您详细介绍MySQL添加字段和修改字段等操作的实现方法,希望对您学习MySQL添加字段方面会有所帮助。 1.登录数据库>mysql -u root -p 数据库名称 2.查询所有数据表>show tables; 3.查询表的字段信息>desc 表名称; 4. 阅读全文
posted @ 2016-10-28 10:24 im5437 阅读(102) 评论(0) 推荐(0) 编辑
  2016年10月27日
摘要: mysql日期和字符相互转换 date_format(date,'%Y-%m-%d') >oracle中的to_char(); str_to_date(date,'%Y-%m-%d') >oracle中的to_date(); www.2cto.com %Y:代表4位的年份 %y:代表2为的年份 %m 阅读全文
posted @ 2016-10-27 21:26 im5437 阅读(147) 评论(0) 推荐(0) 编辑
  2016年10月24日
摘要: 学会了在j2ee中使用ajax后,有时候从服务器返回客户端的数据是对象,自己手动拼凑json字符串容易出错,通过谷歌知道了json-lib这个类库,方便的支持java中对象到json字符串的转化。 看source-forge的json-lib介绍说,需要 jakarta commons-lang 2 阅读全文
posted @ 2016-10-24 15:31 im5437 阅读(490) 评论(0) 推荐(0) 编辑
  2016年10月19日
摘要: alter table test rename test1; --修改表名 alter table test add column name varchar(10); --添加表列 alter table test drop column name; --删除表列 alter table test 阅读全文
posted @ 2016-10-19 17:19 im5437 阅读(121) 评论(0) 推荐(0) 编辑
  2016年10月15日
摘要: 1.卸载老版本mysql 2.卸载完后,下载mysql版本5.7,安装完后有个默认密码提示框,需要记住此密码 A temporary password is generated for root@localhost: UpauVqBjb7%0 If you lose this password, p 阅读全文
posted @ 2016-10-15 10:22 im5437 阅读(1646) 评论(0) 推荐(0) 编辑
  2016年5月8日
摘要: %%是windows平台下取环境变量的符号,你写%JAVA_HOME%,就表示是取JAVA_HOME=....的这个值,不写就是JAVA_HOME这个字符串 linux平台下是$JAVA_HOME path路径中windows用;表示并列例如 ClassPath=.;%JAVA_HOME%\lib\ 阅读全文
posted @ 2016-05-08 21:59 im5437 阅读(926) 评论(0) 推荐(0) 编辑
  2016年4月15日
摘要: 问题的起源是titanium不能用了,因为CLI的问题,大家的建议是安装nodejs,装完了之后呢还是不能用,查看.bash_profile发现/usr/local/bin在path里面,可还是没法用,然后用终端连ls这样的命令都用不了了, 百度出来这个答案: 突然之间linux很多命令都用不了,均 阅读全文
posted @ 2016-04-15 20:33 im5437 阅读(196) 评论(0) 推荐(0) 编辑
摘要: mac 一般使用bash作为默认shell Mac系统的环境变量,加载顺序为:/etc/profile /etc/paths ~/.bash_profile ~/.bash_login ~/.profile ~/.bashrc当然/etc/profile和/etc/paths是系统级别的,系统启动就 阅读全文
posted @ 2016-04-15 20:05 im5437 阅读(147) 评论(0) 推荐(0) 编辑
摘要: MyEclipse中文乱码 1 进入window->preferences general->content types,可以设置Text对应的default encoding值为UTF-8或为空,然后点击update即可。也可能点击Text进入java source file属性,设置defaul 阅读全文
posted @ 2016-04-15 00:26 im5437 阅读(193) 评论(0) 推荐(0) 编辑