2017-01-08から1日間の記事一覧
・and 指定した、条件が全て揃ったもの select * from tossy where score >= 4.0 and team = 'yellow'; +----+------+-------------+--------+-------+---------------------+| id | name | email | team | score | created |+----+------+-------------+---…
・範囲に合致するもの between select * from tossy where score between 5.0 and 10.0; +----+------+----------------+--------+-------+---------------------+| id | name | email | team | score | created |+----+------+----------------+--------+--…
select * from tossy where email like '%gmail.com'; +----+--------+------------------+--------+-------+---------------------+| id | name | email | team | score | created |+----+--------+------------------+--------+-------+------------------…
・レコードを選んで抽出select name, created from tossy; +--------+---------------------+| name | created |+--------+---------------------+| toko | 2016-01-05 19:00:00 || to | 2016-01-01 15:00:00 || hanako | 2016-01-02 16:00:00 || hana | 201…
mysql テーブル(その中のシート)フィールド(列)レコード(行) ----- ・起動mysql -u root ----- ・パスワード設定set password for root@localhost=password('パスワード'); ・パスワード入力mysql -u root -p パスワードを入力する -----・(仮)データ…
index.php -------- // もし 1以上の整数が入ってきた場合 正規表現if (preg_match('/^[1-9][0-9]*$/', $_GET['pag…
index.php ------- <html lang="ja"><head> <meta charset="UTF-8"> <title>sample page</title> <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/3.18.1/build/cssreset/cssreset-min.css"> <link rel="stylesheet" href="style.css"></head><body> <header id="top"> <h1>Title</h1></header></body></html>
index.php -----