Kaynağa Gözat

comment option parameter with ex

Sylvrec 4 yıl önce
ebeveyn
işleme
6d2268ac06
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      mysqltojson/sql/mysql.go

+ 2 - 2
mysqltojson/sql/mysql.go

@@ -40,7 +40,7 @@ func Connect(server, login, mdp, base string) (*sql.DB, error) {
 
 /* Insert
 @parameter table string
-@parameter column []string (optional is nil)
+@parameter column []string (optional is nil (INSERT INTO table VALUES ( , , ,)))
 @parameter values []string
 @return error
 */
@@ -167,7 +167,7 @@ func (s *SQL) UpdateAND(table string, sets [][]string, wheres [][]string) error
 /*
 SelectAND
 @parameter table string
-@parameter colvals [][]string (Each line is combined with AND)
+@parameter colvals [][]string (Each line is combined with AND) (optional is nil (SELECT * FROM table;))
 @return [column][row]string, error
 */
 func (s *SQL) SelectAND(table string, colvals [][]string) ([][]string, error) {