81844/how-to-save-mysql-query-output-to-excel-or-txt-file
Hello @kartik,
You can write following codes to achieve this task:
SELECT ... FROM ... WHERE ... INTO OUTFILE 'textfile.csv' FIELDS TERMINATED BY '|'
It export the result to CSV and then export it to excel sheet.
Hope it helps!!
Thank you!!
Hello @kartik, Use the toSql() method on a QueryBuilder instance. DB::table('users')->toSql() would return: select * ...READ MORE
Hello @kartik, To see the index for a ...READ MORE
Hello @kartik, Try this: DATE_FORMAT(FROM_UNIXTIME(`user.registration`), '%e %b %Y') AS ...READ MORE
Hello @kartik, From the mysql console: mysql> use DATABASE_NAME; mysql> ...READ MORE
Hey @kartik, First you have to go to ...READ MORE
Named route is used to give specific ...READ MORE
Hello, This is simple you just need to ...READ MORE
Hey @kartik, Named routing is another amazing feature of ...READ MORE
Hello @kartik, Using this command columns names will ...READ MORE
Hello kartik, Actually there are many functions that ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.