// UPDATE table_name SET column_name = value [, column_name = value ...] [WHERE condition]
8598
func (q *Insert) toUpdateString(where *Where) string {
	var buffer bytes.Buffer
	buffer.WriteString("UPDATE ")
	buffer.WriteString(q.table)
	buffer.WriteString("\n")
	buffer.WriteString("SET ")
	
	if len(q.column) > 0 && len(q.column) == len(q.data) {
		for i:=0; i < len(q.column);i++ {
			buffer.WriteString( fmt.Sprintf("%s = %s", q.column[i], _s(q.data[i], q.raw[i])))	
		}
	}
	if len(q.output) > 0 {
		buffer.WriteString("OUTPUT")
		for i := 0; i < len(q.output); i++ {
			if i > 0 {
				buffer.WriteString(",")
			}
			s := q.output[i]
			buffer.WriteString(" inserted.")
			buffer.WriteString(s)
		}
		buffer.WriteString("\n")
	}
	if where != nil {
		
	}

	return buffer.String()
}
1155745
func (b *PgsqlBuilder) RenameTable(oldName, newName string) *Query {
	sql := fmt.Sprintf("ALTER TABLE %v RENAME TO %v", b.db.QuoteTableName(oldName), b.db.QuoteTableName(newName))
	return b.NewQuery(sql)
}
1126334
func (vrsConnection VRSConnection) Update(context interface{}, tableUpdates libovsdb.TableUpdates) {
	vrsConnection.updatesChan <- &tableUpdates
}
1229216
func (tx *Tx) Update(table string) *UpdateStmt {
	b := Update(table)
	b.runner = tx
	b.EventReceiver = tx.EventReceiver
	b.Dialect = tx.Dialect
	return b
}
209664
func (s *GetTableVersionsInput) SetTableName(v string) *GetTableVersionsInput {
	s.TableName = &v
	return s
}
373463
func (h *Handle) Update(ctx sessionctx.Context) error {
	var priv MySQLPrivilege
	err := priv.LoadAll(ctx)
	if err != nil {
		return errors.Trace(err)
	}

	h.priv.Store(&priv)
	return nil
}
232066
func (s *Partition) SetTableName(v string) *Partition {
	s.TableName = &v
	return s
}
1164352
func (s *ScanInput) SetTableName(v string) *ScanInput {
	s.TableName = &v
	return s
}
794331
func (s *GetItemInput) SetTableName(v string) *GetItemInput {
	s.TableName = &v
	return s
}
597387
func (s *SchemaConfiguration) SetTableName(v string) *SchemaConfiguration {
	s.TableName = &v
	return s
}
95388
func (me *Dataset) Update(i interface{}) *CrudExec {
	sql, args, err := me.ToUpdateSql(i)
	return newCrudExec(me.database, err, sql, args...)
}
609276
func (s *Put) SetTableName(v string) *Put {
	s.TableName = &v
	return s
}
465429
func (s *TableStatistics) SetTableName(v string) *TableStatistics {
	s.TableName = &v
	return s
}
310700
func (s *ConditionCheck) SetTableName(v string) *ConditionCheck {
	s.TableName = &v
	return s
}
927970
func (s *DeleteTableVersionInput) SetTableName(v string) *DeleteTableVersionInput {
	s.TableName = &v
	return s
}
186692
func (s *ColumnInfo) SetTableName(v string) *ColumnInfo {
	s.TableName = &v
	return s
}
953453
func (l *Lambda) update(kind, name string, m map[string]interface{}) {
	l.log(kind, name, m, '~', yellow)
}