Search all books which the title starts with "Survival".
========================================
Use normal query
28.2 ms
Use stored procedure
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /bin/bash | |
| for isBold in {0..1}; do | |
| for background in {40..47}; do | |
| for foreground in {30..37}; do | |
| colorTag='\e['$isBold';'$foreground';'$background'm' | |
| colorResetTag='\e[0m' | |
| text=$colorTag'isBold:'$isBold' foreground:'$foreground' background:'$background$colorResetTag | |
| echo -e $text | |
| done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # From <http://blogs.msdn.com/b/powershell/archive/2007/06/19/get-scriptdirectory.aspx> | |
| function Get-ScriptDirectory { | |
| $Invocation = (Get-Variable MyInvocation -Scope 1).Value | |
| Split-Path $Invocation.MyCommand.Path | |
| } | |
| $dir = Get-ScriptDirectory | |
| $cmd = $dir + '\bin\mysqladmin.exe' | |
| & $cmd -u root shutdown |
NewerOlder
