FriendsNews header

search


Useful MySQL Queries

by bill - 2020-12-07 ( education / tech / computers / internet ) [html version]

"Common MySQL Queries. Extending Chapter 9 of Get it Done with MySQL 5&Up

Here's an example: Compute date from year, week number and weekday:

SET @yr 12, @wk=26, @day=0;
SELECT Str_To_Date( Concat(@yr,'-',@wk,'-',If(@day=7,0,@day) ), '%Y-%U-%w' ) AS Date;


Read, listen or watch the rest here: artful software



blog versionsimilar posts here... and elsewhere

Comments
We enjoy free speech. Try not to offend, but feel free to be offended.
Leave a new comment regarding "useful-mysql-queries":

 

Dievna Photography | FriendNews | FriendsNews | FriendsNews Blog | HepYa | Holmes Family Newsletter | Homespun News | Lazy Pug Cafe | MyFriends Blog | Nashville Computer Help | Tara's Faves | Test FriendsNews | William Arthur Holmes