This month's discount Comprehensive Database Performance Health Check · Testimonials
SQLAuthority with Pinal Dave
Home
  • Consulting
    • Health Check
  • Free Videos
  • All Articles
    • AI
    • SQL Performance
    • SQL Tips and Tricks
    • Interview Questions and Answers
    • SQL Puzzle
    • SQL Video
    • SQLAuthority News
    • Personal
  • Books
  • Consulting
MySQL - Different Methods to Know Current User

MySQL – Different Methods to Know Current User

April 4, 2016
Pinal Dave
SQL Tips and Tricks
MySQL, SQL Scripts

Why check the current user in MySQL? For audits, permissions and custom logic. Here are the methods, from user() and current_user() to mysql.user.

Read More
MySQL - How to Drop Table If Exists in Database?

MySQL – How to Drop Table If Exists in Database?

March 28, 2016
Pinal Dave
SQL Tips and Tricks
MySQL, SQL Table Operation

SQL Server 2016 added DROP IF EXISTS, but MySQL has had it for years. Here is how to drop table if exists in a MySQL database.

Read More
MySQL - ELT() and FILED() Functions to Extract Index Position From List

MySQL – ELT() and FILED() Functions to Extract Index Position From List

March 25, 2016
Pinal Dave
SQL Tips and Tricks
MySQL, SQL Function, SQL String

MySQL’s ELT() returns the value at a given index position in a list, and FIELD() does the reverse. Here is how both functions work, with simple examples.

Read More
MySQL - How to Generate Random Number

MySQL – How to Generate Random Number

February 6, 2016
Pinal Dave
SQL Tips and Tricks
MySQL, SQL Random

MySQL’s UUID() function returns a random 36 character value. Here is how to generate random number strings and passwords of any length from it.

Read More
A gate needs several keys, but a required position in the key tray is empty

Interview Question of the Week #056 – How to fix Installation Failure – Rule “Setup account privileges” Failed in SQL Server

January 31, 2016
Pinal Dave
SQL Interview Questions and Answers
MySQL, SQL Error Messages

An interview practical: fix a SQL Server installation failure when the rule Setup account privileges failed. Here is the answer.

Read More
Cumulative IO of database files.

SQL SERVER – Script: Finding Cumulative IO Per Database File

January 2, 2016
Pinal Dave
SQL Tips and Tricks
MySQL, SQL Scripts

A simple script to find cumulative IO per database file in SQL Server, and the real scenarios where this number helps you.

Read More
MySQL - Date and Time Related System Functions

MySQL – Date and Time Related System Functions

December 19, 2015
Pinal Dave
SQL Tips and Tricks
MySQL

MySQL has several date and time related system functions, like curdate(), curtime(), now(), current_timestamp() and UTC versions such as utc_timestamp().

Read More
Previous 1 2 3 4 5 6 7 … 12 Next
  • Books
  • Testimonials
  • Privacy Policy

© 2006 – 2026 All rights reserved. pinal @ SQLAuthority.com