孤独的猫

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2012年3月28日

摘要: 1.显示数据库mysql> show databases;+--------------------+| Database |+--------------------+| information_schema || mysql |+--------------------+2 rows in set (0.00 sec)2.选择一个数据库mysql> use mysqlReading table information for completion of table and column namesYou can turn off this feature to get a qu 阅读全文
posted @ 2012-03-28 20:54 孤独的猫 阅读(171) 评论(0) 推荐(0) 编辑

摘要: mysql -h localhost -u root -p 阅读全文
posted @ 2012-03-28 20:42 孤独的猫 阅读(388) 评论(0) 推荐(0) 编辑

摘要: irb(main):005:0> [1,1,3,5] & [1,2,3]=> [1, 3]irb(main):006:0> [1,2,3] * 3=> [1, 2, 3, 1, 2, 3, 1, 2, 3]irb(main):007:0> [1,2,3 ] * "--"=> "1--2--3"irb(main):008:0> [1,1,2,2,3,3,4,5]-[1,2,4]=> [3, 3, 5]irb(main):009:0> [1,2] <<'c'<&l 阅读全文
posted @ 2012-03-28 20:30 孤独的猫 阅读(180) 评论(0) 推荐(0) 编辑