You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
select t1.sql_Id,t1.sql_text,t2.elapsed_time_total as elapsed_time,t2.executions_total as executions from dba_hist_sqltext t1 join
dba_hist_sqlstat t2 on t1.sql_id=t2.sql_id where t1.command_type=3
code example
rows, err := db.Query("select t1.sql_Id,t1.sql_text,t2.elapsed_time_total as elapsed_time,t2.executions_total as executions from dba_hist_sqltext t1 join \ndba_hist_sqlstat t2 on t1.sql_id=t2.sql_id where t1.command_type=3")
if err != nil {
panic(err)
}
var id, sql string
var et, ex int
for rows.Next() {
err := rows.Scan(&id, &sql, &et, &ex)
if err != nil {
panic(err)
}
}
if rows.Err() != nil {
panic(rows.Err())
}
the rows.Err() is not empty and like this
Invalid Input Number xxxxxxxxxxxxxxxxxxxxxxxxx
remark
golang version: 1.17.2
oracle version: 11g
The text was updated successfully, but these errors were encountered:
lvxiaorun
changed the title
Invalid Input Numer error
Invalid Input Number error
Jul 14, 2023
when query as this sql
select t1.sql_Id,t1.sql_text,t2.elapsed_time_total as elapsed_time,t2.executions_total as executions from dba_hist_sqltext t1 join
dba_hist_sqlstat t2 on t1.sql_id=t2.sql_id where t1.command_type=3
code example
the rows.Err() is not empty and like this
Invalid Input Number xxxxxxxxxxxxxxxxxxxxxxxxx
remark
golang version: 1.17.2
oracle version: 11g
The text was updated successfully, but these errors were encountered: