예제 #1
0
        public static SqlClause Insert(string tableName, params string[] columns)
        {
            var sql_clause = new SqlClause();

            sql_clause.AsStatementsClause("insert into " + tableName, indent: null);
            sql_clause.RenderIfEmpty = true;

            if (columns != null && columns.Length > 0)
            {
                sql_clause.Add(InsertColumns(columns));
            }

            return(sql_clause);
        }