상속: DmlInsertReplaceStatement
 /// <exception cref="System.Exception" />
 public override string GetSql()
 {
     var sb = new StringBuilder("insert into offer_detail (offer_id, gmt) values ");
     for (var i = 0; i < 8; ++i)
     {
         if (i > 0)
         {
             sb.Append(", ");
         }
         sb.Append("(" + (i + 100) + ", now())");
     }
     var sql = sb.ToString();
     var lexer = new MySqlLexer(sql);
     insert = new MySqlDmlInsertParser(lexer, new MySqlExprParser(lexer)).Insert();
     sqlSize = new InsertLong().GetSql().Length;
     return sql;
 }
예제 #2
0
 public virtual void Visit(DmlInsertStatement node)
 {
     VisitInternal(node.ColumnNameList);
     VisitInternal(node.DuplicateUpdate);
     VisitInternal(node.RowList);
     VisitInternal(node.Select);
     VisitInternal(node.Table);
 }
 /// <exception cref="System.Exception" />
 public override string GetSql()
 {
     var sql = new InsertLong().GetSql();
     var lexer = new MySqlLexer(sql);
     insert = new MySqlDmlInsertParser(lexer, new MySqlExprParser(lexer)).Insert();
     return sql;
 }