changeset 750:2ce5de0e9a3a

test toi
author ARAKI Tsuyohito <c113007@e.koeki-u.ac.jp>
date Wed, 08 Jul 2015 18:08:22 +0900
parents fb93d753f2b2
children 8fa9f9b018de
files oasis2015/prof.rb
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/oasis2015/prof.rb	Wed Jul 08 01:36:26 2015 +0900
+++ b/oasis2015/prof.rb	Wed Jul 08 18:08:22 2015 +0900
@@ -9,7 +9,7 @@
 id = c.cookies["id"][0]
 person = id.to_i
 
-data = "select * from test where id = ?"
+data = "select * from toi where id = ?"
 #idが?(後で代入)のデータをtest票から探す。という命令をdataにしくむ。全てがほしい場合は「*」。「*」を「name」に変えると該当データのnameだけとりだす。
 cook = db.execute(data, person)               #dataに仕組んでいた命令を、personを代入しつつ実行。
 jikan1 = "select * from time where cd = ?"

yatex.org