chnage column name sql code example
Example 1: laravel migration change column name
Schema::table('users', function (Blueprint $table) {
$table->renameColumn('from', 'to');
});
Example 2: change name of colum in sql table
ALTER TABLE "table_name" RENAME COLUMN "column 1" TO "column 2";
Example 3: PL SQL MODIFY COLUMN NME
ALTER TABLE table_name
RENAME COLUMN old_name TO new_name;