Change Is Inevitable
  • Home
  • MySQL
    • MySQL-Articles
    • AWS RDS
    • Percona Xtradb Cluster
    • MariaDB
    • Galera Cluster
    • ProxySQL
    • MySQL-Scripts
    • MySQL tools
    • MySQL Resources
  • Tools
    • MySQL Advisor
    • MySQL Random Data Generator
    • Postgresql Random Data Generator
    • Clean Prompt
  • General
    • binary-to-decimal
    • Fermat’s Theorem
    • Review
    • Just for fun
    • Personal
  • Contact Me
    • Copyright
    • MySQL Podcast (Youtube)
    • MySQL Podcast (Spotify)
Recent Posts
  • MySQL INSTANT DDL breaks EXCHANGE PARTITION
  • How to setup and use Percona Binlog Server (PBS)
  • MySQL Major Version Upgrade Checklist – how to
  • InnoDB Flushing is simple – explained
  • MySQL Tools for Performance Tuning and Test Data Generation
Recent Comments
  • Kedar on MySQL INSTANT DDL breaks EXCHANGE PARTITION
  • Jean-François Gagné on MySQL INSTANT DDL breaks EXCHANGE PARTITION
  • Reggie on A Unique Foreign Key issue in MySQL 8.4
  • Kedar on How to fix write latency in MySQL 8.4 Upgrade
  • Kedar on How to fix write latency in MySQL 8.4 Upgrade
Home » MySQL » MySQL-Scripts
Change Is Inevitable

Kedar Vaijanapurkar's Blog for MySQL, technology and various subjects

  • Home
  • MySQL
    • MySQL-Articles
    • AWS RDS
    • Percona Xtradb Cluster
    • MariaDB
    • Galera Cluster
    • ProxySQL
    • MySQL-Scripts
    • MySQL tools
    • MySQL Resources
  • Tools
    • MySQL Advisor
    • MySQL Random Data Generator
    • Postgresql Random Data Generator
    • Clean Prompt
  • General
    • binary-to-decimal
    • Fermat’s Theorem
    • Review
    • Just for fun
    • Personal
  • Contact Me
    • Copyright
    • MySQL Podcast (Youtube)
    • MySQL Podcast (Spotify)

Browsing Category

MySQL-Scripts

21 posts

MySQL related blog posts with scripts

Install exact version of Percona Server for MySQL on CentOS

  • Kedar
  • May 30, 2023
This blog post serves as a work-log detailing the process of uninstalling and installing a specific version of Percona MySQL Server on CentOS. The post includes instructions for installation using…
View Post

Providing Friday Proofs to MySQL Consultants | Scripts Functions Routines

  • Kedar
  • September 24, 2022
In the MySQL world, I am surrounded by some of the best database consultant, it brings them immense joy about having a “Friday”, so much so that they cannot believe…
View Post

MySQL function returns dates of specified day & between date range

  • Kedar
  • September 13, 2012
This mysql stored function will return you all the dates between given dates having specified day. In short if you say: give me all Sundays in this month. I have…
View Post
mysql-random-data-generator
  • MySQL
  • MySQL-Scripts
  • 19 comments

How To Generate Random test Data In MySQL

  • Kedar
  • July 5, 2012
Are you tired of manually generating test data for your MySQL tables? If you’re looking for random data generator, look no further! Introducing the MySQL Random Data Generator, a powerful…
View Post

MySQL Binary logs Generated Per Hour | Growth Estimate

  • Kedar
  • July 29, 2011
The MySQL binary log is a set of log files that contain information about data modifications made to a MySQL server instance. At times we need to understand the disk…
View Post

MySQL Function to Convert Date To Words

  • Kedar
  • September 16, 2010
Recently I saw a MySQL Stored Function requirement on Experts-Exchange for converting date into some specific words format. You may find MySQL function for date to words conversion online; even…
View Post

Posts pagination

1 2 … 4 Next
MySQL Podcast (Youtube)
RSS feed: MySQL Podcast (Spotify) MySQL Podcast (Spotify)
  • MySQL Major Version Upgrade Checklist (Zero Downtime Strategy)
    Upgrading MySQL major versions in production is never just a version bump - it’s a carefully planned process involving compatibility checks, replication strategy, testing, and controlled cut-over.In this episode, we walk through a practical MySQL Major Version Upgrade Checklist based on real-world DBA workflows. We are covering MySQL replication as base setup for upgrade. It […]
Search:
... ...
  • MySQL INSTANT DDL breaks EXCHANGE PARTITION
  • How to setup and use Percona Binlog Server (PBS)
  • MySQL Major Version Upgrade Checklist – how to
  • InnoDB Flushing is simple – explained
  • MySQL Tools for Performance Tuning and Test Data Generation

4 responses to “MySQL Function to Convert Date To Words”

  1. sunilrawat Avatar
    sunilrawat
    January 6, 2016

    Hi is there any way to convert from words to date. any logic for this. I need know the date from Words Like: Twenty-third November Two Thousand should be : 23-11-2000 is it possible?

    Reply
  2. Kevin Avatar
    Kevin
    September 18, 2010

    There are times when I have to ask myself – where is the most appropriate place to have logic reside. When it comes to converting numeric dates to words like this, it seems to me that this is something the database server should not be doing on enterprise-level servers. There are a lot of things that a MySQL server *can* do that it really should not attempt to do.

    RDBMS’s are an expensive resource in most production environments while web and application servers tend to be far less expensive. Think about it this way – is it worth the extra processing on the database server as well as the extra memory that will be consumed by handling this processing there versus doing the same activity in a library that is shared on the application server, web server, or even better, on the client’s system? Would it be cheaper and potentially faster to do the extra work to implement the solution at some layer above the database? In this case, my guess is that it would be a lot cheaper to let the application code handle these transformations.

    Note that MySQL does not pre-compile stored procedures at all so it will have to re-interpret the code in a stored procedure every time it’s called. That ain’t cheap. There may be a slight performance gain from caching, but I think you’ll find that an application can handle these transformations much more efficiently.

    Reply
  3. Kedar Avatar
    Kedar
    September 16, 2010

    Well they’re slower as obvious differences between compiled sql and c code. 🙂
    Check http://www.mysqlperformanceblog.com/2010/09/06/udf-vs-mysql-stored-function/

    Reply
  4. huarong Avatar
    huarong
    September 16, 2010

    mysql stored function is much slower than ufds?

    Reply
Change Is Inevitable
Designed & Developed by Code Supply Co.