Get all possible values for enum (enum) columns in MySQL there is really no need for any other functions to support it, just use some of the SQL statements provided by MySQL. For the sake of simplicity, take the MySQL system table user as an example to remove all possible values for the Select_priv column. Method: SHOW COLUMNS from table_name like enum_column_name lowercase parts need to change depending on your situation. Program: "; $enum _arr=explode ("(", $enum); $enum = $enum _arr[1]; $enum _arr=explode (")", $enum); $enum = $enum _arr[0]; $enum _arr=explode (",", $enum); for ($i =0; $i
";}? >
http://www.bkjia.com/phpjc/531700.html www.bkjia.com true http://www.bkjia.com/phpjc/531700.html techarticle get all possible values for enum (enum) columns in MySQL there is actually no need for any other function to support this. You just need to use some SQL statements provided by MySQL. Here for Jane ...