摘要:创建table:create table links(text long varchar); create table test(file long varbinary);其中text和file是列名称。Long Data TypesStore data up to 32,000,000 bytes:LONG VARBINARY—Variable-length raw-byte data, such as IP addresses.LONG VARBINARYvalues are not extended to the full width of the column.LONG V...
阅读全文
摘要:SSH在linux Shell中的用法 SSH主要用于远程登录。假定你要以用户名user(对方主机用户名),远程登录主机的host(对方主机ip) 命令:ssh user@host。linux机器一般都安装了ssh软件。SCP使用方法, SCP 出发地 目的地 获取对方主机的文件/etc/test.txt scp user@host:/etc/test.txt /etc/ 上传文件到对方主机 scp /etc/test.txt user@host:/etc/
阅读全文
摘要:近期工作中接触到java的定时器,记下自己在使用schedule方法遇到的小问题,时刻提醒自己对待程序要认真再认真。先写个小例子:package Demo;import java.util.Timer;public class TimeTaskDemo {public static void main(String[] args){Timer timer = new Timer();timer.schedule(new Task(), 60 * 1000); // 60秒后执行Task类,只执行一次 //timer.schedule(new Task(), 1000, 60*1000); ..
阅读全文