查询语句时间为5秒多
mdol语句
class Hi < ApplicationRecord
establish_connection :qc
self.table_name = 'mz_guahao1'
end
controller 语句
def index
@his = Hi.connection.select_value(sql)
end
sql语句问题,若使用to_char就会导致全表saomia
查询语句时间为5秒多
mdol语句
class Hi < ApplicationRecord
establish_connection :qc
self.table_name = 'mz_guahao1'
end
controller 语句
def index
@his = Hi.connection.select_value(sql)
end
sql语句问题,若使用to_char就会导致全表saomia