db
master
xiexiaojun 6 years ago
parent 3acd87d714
commit 12b5a73d6e

@ -17,8 +17,10 @@ func Execute() {
rows, err := orm.Raw("show tables").Rows() rows, err := orm.Raw("show tables").Rows()
if err != nil { if err != nil {
fmt.Println(err) fmt.Println(err)
return
} }
defer rows.Close() defer rows.Close()
for rows.Next() { for rows.Next() {
var table string var table string
rows.Scan(&table) rows.Scan(&table)
@ -26,5 +28,4 @@ func Execute() {
} }
fmt.Println(tables) fmt.Println(tables)
} }

BIN
debug

Binary file not shown.
Loading…
Cancel
Save