B
beny 18241
Hi,
I have some problem, i want to make select query with $name variable but
i cant, this is my code please help what is wrong
print "Enter name :"
$name = STDIN.gets
conn = OCI8.new('user', 'pass')
num_rows = conn.exec("SELECT * FROM test where name like '%" + $name +
"%'")
do |r|
puts r.join(',')
end
I have some problem, i want to make select query with $name variable but
i cant, this is my code please help what is wrong
print "Enter name :"
$name = STDIN.gets
conn = OCI8.new('user', 'pass')
num_rows = conn.exec("SELECT * FROM test where name like '%" + $name +
"%'")
do |r|
puts r.join(',')
end