ミームの死骸を待ちながら

We are built as gene machines and cultured as meme machines, but we have the power to turn against our creators. We, alone on earth, can rebel against the tyranny of the selfish replicators. - Richard Dawkins "Selfish Gene"

We are built as gene machines and cultured as meme machines, but we have the power to turn against our creators.
We, alone on earth, can rebel against the tyranny of the selfish replicators.
- Richard Dawkins "Selfish Gene"

MySQL

MySQL/Rubyの基本の書き方

Rubyスクリプト内にmysqlをrequireし、クエリ文を埋め込んで使用する。 クエリ文はMy自体で試行錯誤し、できたものをコピペ require 'mysql' begin myh = Mysql.init myh.options (Mysql::SET_CHARSET_NAME, 'utf8') #日本語に対応させる myh.connect('local…

基本のクエリ考え方

select の後に結果に出力する要素を「,」で区切って列挙。countやsumはどのtableにかかるのか注意*1 from で大元になるtable宣言し join on で使うtableを結合、多くてもいい where で検索の条件。primary keyのコネクト等 group by, order by も必要ならば …

Ruby/MySQLについて

前にもメモった気がする。 Ruby/MySQLはRubyで記述された(pure ruby)MySQLのRuby API*1. MySQL/Rubyとほぼ互換。比較はこちら Ruby/MySQL…RubyにおけるMySQLクラスの操作あり *1:【API(Application Program Interface)】規約に従ってその機能を「呼び出す…

MySQL全機能リファレンス作者: 鈴木啓修出版社/メーカー: 技術評論社発売日: 2004/11メディア: 単行本購入: 2人 クリック: 135回この商品を含むブログ (23件) を見る ←購入した。 ここらへんもよさそう。特に徹底入門はかなり迷った

MySQL4.1リファレンスマニュアル←ここで大体いける MySQL5.0 Reference Manual Wikipedia - MySQL MySQLとは?リレーショナルデータベース… 二次元の表を格納 正規化… データの冗長性を減らす。第一〜第三正規化 データ型… 数値型・日付型・文字型【more】 2…

インストール後の設定にて

Connection Error Error nr.2003 Can't connect to MySQL server on 'localhost'(10061) If a personal firewall is running on your machine, please make sure you have opend TCP port 3306 for connections. TCP port 3306を解放しろと。でなければ外部…

インストール

One-Click Installer からインストールした僕のRubyには、既にgemが入っていた。 そこで、コマンドプロンプトから >gem install rails --remote --include-dependencies と叩いてRailsをインストール開始。 そもそもRubyGemsが入ってない場合は、 RubyForge …

MySQLってなに?

さて、インターンではMySQLというものも勉強するらしい。 MySQL[2]…オープンソースのRDBMS(Relational Data Base Management System)で、 DBMSの一種。機能は少ないが高速で、扱い易い。DBMSは、ウィキペディアによれば[3]…データベース運用/管…