function DropColumnSQL($tabname, $flds, $tableflds='',$tableoptions='')
	{
		$tabname = $this->TableName ($tabname);
		if (!is_array($flds))
			$flds = explode(',',$flds);
		$f = array();
		$s = 'ALTER TABLE ' . $tabname;
		foreach($flds as $v) {
			if ( $constraintname = $this->DefaultConstraintname($tabname,$v) ) {
				$sql[] = 'ALTER TABLE ' . $tabname . ' DROP CONSTRAINT ' . $constraintname;
			}
			$f[] = ' DROP COLUMN ' . $this->NameQuote($v);
		}
		$s .= implode(', ',$f);
		$sql[] = $s;
		return $sql;
	}
function DropColumnSQL($tabname, $flds, $tableflds='',$tableoptions='')
	{
		$tabname = $this->TableName ($tabname);
		if (!is_array($flds))
			$flds = explode(',',$flds);
		$f = array();
		$s = 'ALTER TABLE ' . $tabname;
		foreach($flds as $v) {
			if ( $constraintname = $this->DefaultConstraintname($tabname,$v) ) {
				$sql[] = 'ALTER TABLE ' . $tabname . ' DROP CONSTRAINT ' . $constraintname;
			}
			$f[] = ' DROP COLUMN ' . $this->NameQuote($v);
		}
		$s .= implode(', ',$f);
		$sql[] = $s;
		return $sql;
	}
function DropColumnSQL ( $ tabname , $ flds , $ tableflds = '' , $ tableoptions = '' ) { $ tabname = $ this -> TableName ( $ tabname ) ; if ( ! is_array ( $ flds ) ) $ flds = explode ( ',' , $ flds ) ; $ f = array ( ) ; $ s = 'ALTER TABLE ' . $ tabname ; foreach ( $ flds as $ v ) { if ( $ constraintname = $ this -> DefaultConstraintname ( $ tabname , $ v ) ) { $ sql [ ] = 'ALTER TABLE ' . $ tabname . ' DROP CONSTRAINT ' . $ constraintname ; } $ f [ ] = ' DROP COLUMN ' . $ this -> NameQuote ( $ v ) ; } $ s .= implode ( ', ' , $ f ) ; $ sql [ ] = $ s ; return $ sql ; }
Drop a column, syntax is ALTER TABLE table DROP COLUMN column,column

@param string   $tabname      Table Name
@param string[] $flds         One, or an array of Fields To Drop
@param string   $tableflds    Throwaway value to make the function match the parent
@param string   $tableoptions Throway value to make the function match the parent

@return string  The SQL necessary to drop the column
Drop a column syntax is ALTER TABLE table DROP COLUMN column column