2012-02-01から1ヶ月間の記事一覧

データベースからのエラー情報を取得する

<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>エラー情報を取得したい(MySQL)</title> </head> <body> </body></html>

クエリ結果のメモリを解放する

<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>クエリ結果のメモリを解放したい(MySQL)</title> </head> <body> </body></html>

テーブルを作成する

<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>テーブルを作成したい(MySQL)</title> </head> <body> </body></html>

レコードを削除する

<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>レコードを削除したい(MySQL)</title> </head> <body> </body></html>

レコードを更新する

<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>レコードを更新したい(MySQL)</title> </head> <body> </body></html>

レコードをオブジェクトとして取得する

<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>レコードをオブジェクトとして取得したい(MySQL)</title> </head> <body> </body></html>

複数行のレコードを取得する

<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>複数行の結果を取得したい(MySQL)</title> </head> <body> </body></html>

1行のレコードを取得する

<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>1行の結果を取得したい(MySQL)</title> </head> <body> </body></html>

レコードを作成する

<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>新規レコードを作成したい(MySQL)</title> </head> <body> </body></html>

MySQLに接続する

<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>データベースに接続したい(MySQL)</title> </head> <body> </body></html>

SQLでの間違えやすい箇所

SQL

表の結合 自然結合(natural join) 結合に使う列を、表名または別表名で修飾するとエラーになる --エラーにならない select ename,deptno from emp natural join dept; --エラー select ename,emp.deptno from emp natural join dept; USING句を使用した結合 …