上一页 1 ··· 38 39 40 41 42 43 44 45 46 ··· 80 下一页
摘要: 我买了本深入浅出MySQL, 记录一下笔记。一、数据定义语言(DDL)1.创建数据库 create database name;2.显示所有的数据库 show databases;3.选择操作的数据库 use dbname;4.显示所选择的的数据库中所有的数据表 show tables;5.删除数据... 阅读全文
posted @ 2015-06-09 16:24 匡子语 阅读(329) 评论(0) 推荐(0)
摘要: 每次学新技术最烦的就是安软件了.....下载的mysql5.6http://dev.mysql.com/downloads/windows/一路默认安装。安装后1.以管理员身份打开C:\WINDOWS\system32 中的cmd.exe2.进入MySQL Server 5.6\bin 目录 输入m... 阅读全文
posted @ 2015-06-09 11:34 匡子语 阅读(246) 评论(0) 推荐(0)
摘要: 只打印第10行 关键在于当行数小于10时不输出。用 head tail的关键问题是当行数小于10的时候用 head -n 10 只会打出前面的行,再用tail就错了。所以要知道源文件一共有多少行。用wcwc -l 显示文件一共有多少行 -w列出有多少字(英文单字)-m列出有多少字符但是得到了这个数字... 阅读全文
posted @ 2015-06-04 15:31 匡子语 阅读(1210) 评论(0) 推荐(0)
摘要: 提取IP地址:方法①:ifconfig eth3|grep Bcast|cut -d ":" -f2|cut -d " " -f1ifconfig: 显示或配置网络设备的命令 后面跟的是设备名。ifconfig eth3 的显示如下:grep: 后面接正则表达式,显示正则表达式出现的行ifconfi... 阅读全文
posted @ 2015-06-03 22:26 匡子语 阅读(1366) 评论(0) 推荐(0)
摘要: Find all possible combinations ofknumbers that add up to a numbern, given that only numbers from 1 to 9 can be used and each combination should be a u... 阅读全文
posted @ 2015-05-25 18:46 匡子语 阅读(174) 评论(0) 推荐(0)
摘要: Find thekth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct element.For exampl... 阅读全文
posted @ 2015-05-24 21:29 匡子语 阅读(195) 评论(0) 推荐(0)
摘要: Given a string S, you are allowed to convert it to a palindrome by adding characters in front of it. Find and return the shortest palindrome you can f... 阅读全文
posted @ 2015-05-24 20:49 匡子语 阅读(198) 评论(0) 推荐(0)
摘要: Implement strStr().Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.思路:注意,在for循环中条件有计算得到的负数时, ... 阅读全文
posted @ 2015-05-22 22:48 匡子语 阅读(138) 评论(0) 推荐(0)
摘要: Roman to IntegerGiven a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.思路:首先要学一下罗马数字是怎么表示的,参见百度百科其实... 阅读全文
posted @ 2015-05-22 22:32 匡子语 阅读(291) 评论(0) 推荐(0)
摘要: There are a total ofncourses you have to take, labeled from0ton - 1.Some courses may have prerequisites, for example to take course 0 you have to firs... 阅读全文
posted @ 2015-05-21 12:59 匡子语 阅读(245) 评论(0) 推荐(0)
上一页 1 ··· 38 39 40 41 42 43 44 45 46 ··· 80 下一页