Search
 
SCRIPT & CODE EXAMPLE
 

SQL

get table column names sql laravel

use IlluminateSupportFacadesSchema;

use IlluminateSupportFacadesDB;

public function getTableColumns($table)
{
    return DB::getSchemaBuilder()->getColumnListing($table);

    // OR

    return Schema::getColumnListing($table);

}
Comment

PREVIOUS NEXT
Code Example
Sql :: how to find date from date table in sql 
Sql :: get first 3 letters in sql 
Sql :: mysql login console 
Sql :: select tables with name like mysql 
Sql :: oracle create program if not exists 
Sql :: mysql number format 
Sql :: alter table sql 
Sql :: oracle list of long running queries 
Sql :: return insert results in POSTGRESQL 
Sql :: sql alchemy with azuresql server 
Sql :: ms sql truncate table vs delete 
Sql :: select tables from mysql database 
Sql :: oracle grant select on schema 
Sql :: wsl centos 8 mysql 
Sql :: mysql alter table set column unique 
Sql :: possgress drop if exists view 
Sql :: mysql create timestamp column 
Sql :: oracle last day of month 
Sql :: check isolation level in mysql 
Sql :: wordpress print query sql 
Sql :: insert a select statement into a table 
Sql :: Insert from table tsql 
Sql :: convert rows to columns in sql server 
Sql :: query saurce oracle 
Sql :: where date in datetime mysql 
Sql :: date format in sql 
Sql :: mysql inner join 3 tables 
Sql :: change column name in sql 
Sql :: sql duplicate rows 
Sql :: check if string is a number sql 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =