Dashing.Engine.Dialects.SqlDialectBase.WriteDropTableIfExists C# (CSharp) Method

WriteDropTableIfExists() public method

public WriteDropTableIfExists ( string tableName ) : string
tableName string
return string
        public virtual string WriteDropTableIfExists(string tableName) {
            var sql = new StringBuilder();
            sql.Append("if exists (select 1 from INFORMATION_SCHEMA.TABLES where TABLE_NAME = '");
            this.AppendEscaped(sql, tableName);
            sql.Append("') drop table ");
            this.AppendQuotedName(sql, tableName);
            return sql.ToString();
        }