What is SQL? What are the types available in SQL?

Structured Query Language, or SQL, is the standard language used to communicate with a database, and or change records and user privileges, and perform queries. The Language, which became an ANSI standard in 1989, is currently used by almost all of today’s commercial RDBMS.

Types of SQL

  • Data Definition Language(DDL)
  • Data Manipulation Language(DML)
  • Data Control Language(DCL)

How to Change “Return to Shop” Button text in WooCommerce

In this article, I will show you How to Change “Return to Shop” Button text in WooCommerce.

Copy below code and paste into theme function.php file.

add_filter( 'gettext', 'change_woocommerce_return_to_shop_text', 20, 3 );
function change_woocommerce_return_to_shop_text( $translated_text, $text, $domain ) {
    switch ( $translated_text ) {
        case 'Return to shop' :
        $translated_text = __( 'Return to Store', 'woocommerce' );
        break;
    }
    return $translated_text;
}

Have any doubt, then comment here!

What is the difference between BLOB AND TEXT in MySQL?

A BLOB is a binary large object that can hold a variable amount of data. There are four types of BLOB

  • TINYBLOB
  • BLOB
  • MEDIUMBLOB and
  • LONGBLOB

They all differ only in the maximum length of the values they can hold.

A TEXT is a case-insensitive BLOB. The four TEXT types

  • TINYTEXT
  • TEXT
  • MEDIUMTEXT and
  • LONGTEXT

They all correspond to the four BLOB types and have the same maximum lengths and storage requirements.

The only difference between BLOB and TEXT types is that sorting and comparison is performed in case-sensitive for BLOB values and case-insensitive for TEXT values.

Difference between CHAR and VARCHAR?

Following are the differences between CHAR and VARCHAR:

  • CHAR and VARCHAR types differ in storage and retrieval
  • CHAR column length is fixed to the length that is declared while creating table. The length value ranges from 1 and 255
  • When CHAR values are stored then they are right padded using spaces to specific length. Trailing spaces are removed when CHAR values are retrieved.

jQuery.ajax() Method

jQuery.ajax() method performs asynchronous http request and gets the data from the server. it allows you to send asynchronous http requests to submit or retrieve data from the server without reloading the whole page.
it can be used to send http GET, POST, PUT, DELETE etc. request. It can retrieve any type of response from the server.

Syntax: jQuery.ajax(url,[options])

Use option parameter to customize ajax request as per your need. All available options for configuring Ajax request can be listed below.

  • accepts
  • async
  • beforeSend
  • cache
  • complete
  • contentType
  • crossDomain
  • data
  • dataType
  • error
  • global
  • headers
  • ifModified
  • isLocal
  • jsonp
  • jsonpCallback
  • mimeType
  • password
  • processData
  • statusCode
  • success
  • timeout
  • type
  • url
  • username
  • xhr
  • xhrFields