How To Control Output Formatting Via The MySQL Shell CLI

Author: , May 26th, 2021

-N: No column headers -B: Batch mode – use tabs as field separators https://dev.mysql.com/doc/mysql-shell/8.0/en/mysql-shell-output-formats.html Multiple Formats Available: Table Format – use –result-format=table, alias –table Tab Separated Format – use –result-format=tabbed, alias –tabbed Vertical Format – use –result-format=vertical, alias –vertical JSON Format Output – use –result-format=VALUE, alias –json[=pretty|raw|off] VALUE may be one of: json or […]

How To Get the Structure of All Tables in a MySQL Database Using mysqldump

Author: , December 2nd, 2018

mysqldump -u {yourUserNameHere} -p –no-data –compact {yourDatabaseHere}

How To Select Rows in MySQL with No Matching Entry in Another Table

Author: , May 16th, 2018

SELECT t1.id FROM tableOne t1 LEFT JOIN tableTwo t2 ON t1.id = t2.id WHERE t2.id IS NULL The “WHERE t2.id IS NULL clause” restricts the results to only those rows where the id returned from tableTwo is null. tableTwo.id will be NULL for all records from tableOne where the id is not found in tableTwo.

How To Select the First Table Cell in the First Row Using CSS

Author: , April 19th, 2014

table.myTable > tbody > tr:first-child > td:first-child

How To Disable Sort in DataTables

Author: , July 10th, 2013

To turn off Sort completely, use the ‘bSort’: false option. http://datatables.net/usage/features#bSort To have sorting turned off to begin with, but the user can still click on the columns to sort, use the ‘aaSorting’: [] (i.e. empty array) option. http://datatables.net/examples/basic_init/table_sorting.html Happy Coding!

How To Create a Responsive Table Using jQuery

Author: , April 19th, 2013

The jQuery

The HTML

How To Copy Data From Table To Table Using MySQL

Author: , June 8th, 2011

How To Fix Safari And IE7 Table Rendering Problems

Author: , May 30th, 2011

I was having trouble with a table not sizing properly. The width of the table was much wider that the content. It tuns out that both Safari and IE7 have trouble with COLSPAN. Worked just fine in FF and IE8. The fix was to make the COLSPAN into a single cell and place another table […]