Daniol Thomas has Published 212 Articles

How can we write MySQL query for cross joins with the help of Comma operator?

Daniol Thomas

Daniol Thomas

Updated on 20-Jun-2020 11:06:48

99 Views

Writing cross joins with the help of comma operator is the most basic way to combine two tables. As we know that we can also write cross join by using keyword CROSS JOIN or synonyms like JOIN. To form a cross join we do not need to specify the condition ... Read More

What is TEXT data type in MySQL?

Daniol Thomas

Daniol Thomas

Updated on 20-Jun-2020 08:30:41

10K+ Views

TEXT data objects are useful for storing long-form text strings in a MySQL database. Followings are some point about TEXT data type −TEXT is the family of column type intended as high-capacity character storage.The actual TEXT column type is of four types-TINYTEXT, TEXT, MEDIUMTEXT and LONGTEXT.The four TEXT types are ... Read More

What is the query to check Character set of the columns of MySQL table?

Daniol Thomas

Daniol Thomas

Updated on 20-Jun-2020 07:32:48

355 Views

Following is the query to check character set of the columns of MySQL table −mysql> Select Column_name 'Column', Character_set_name 'Charset' FROM        information_schema.columns where table_schema = 'db_name' and        table_name ='table_name';ExampleFor example, the query below returns the name of the columns of ‘test_char_set’ table in a ... Read More

Why Aural rendering of documents is necessary

Daniol Thomas

Daniol Thomas

Updated on 20-Jun-2020 06:39:41

95 Views

Aural rendering of documents is mainly used by the visually impaired. Some of the situations in which a document can be accessed by means of aural rendering rather than visual rendering are the following.Learning to readTrainingWeb access in vehiclesHome entertainmentIndustrial documentationMedical documentationWhen using aural properties, the canvas consists of a ... Read More

Why is it not good practice to use date values with two-digits years in MySQL?

Daniol Thomas

Daniol Thomas

Updated on 20-Jun-2020 06:21:36

96 Views

As we know that, YEAR(2) stores a year in 2-digit format. For example, we can write 69 to store 1969 as a year. In YEAR (2), the year can be specified from 1970 to 2069 (70 to 69).MySQL interprets 2-digit year values with the help of following rules −Year values ... Read More

In MySQL, how can we display the date in other format specified by the user?

Daniol Thomas

Daniol Thomas

Updated on 20-Jun-2020 05:54:16

46 Views

We need to use DATE_FORMAT() function to display the date in other formats. There would be two arguments of this function, first would be the date and second would be the format string.Example − Suppose in the table ‘date_testing we have three dates in the following formatmysql> Select * from ... Read More

How many DATE data types are supported by MySQL?

Daniol Thomas

Daniol Thomas

Updated on 19-Jun-2020 13:32:12

86 Views

MySQL supports following 5 types of DATE data type −DATE - A date is in the range between 1000-01-01 and 9999-12-31. “YYYY-MM-DD” is the default DATE format. For example, January 17th, 1984 would be stored as 1984-01-17.DATETIME − This data type supports a date along with time in the range ... Read More

How to get a string representation of a number in JavaScript?

Daniol Thomas

Daniol Thomas

Updated on 17-Jun-2020 06:23:34

322 Views

Use the toString() method to get the string representation of a number. You can try to run the following code to print a string representation of numbers like 20, -40, 15.5 −ExampleLive Demo                    var num1 = 25;   ... Read More

How I can replace a JavaScript alert pop up with a fancy alert box?

Daniol Thomas

Daniol Thomas

Updated on 16-Jun-2020 13:10:14

900 Views

To design a custom JavaScript alert box, try to run the following code. The code uses a JavaScript library jQuery and CSS to create a fancy alert box different from the standard JavaScript alert box −ExampleLive Demo                     ... Read More

What is the maximum size of a web browser's cookies value?

Daniol Thomas

Daniol Thomas

Updated on 16-Jun-2020 12:04:38

4K+ Views

The following are the details of the maximum size of web browser’s cookies value −Web BrowserMaximum cookiesMaximum size per cookieGoogle Chrome1804096 bytesFirefox1504097 bytesOpera1804096 bytesAndroid504096 bytes

Previous 1 ... 3 4 5 6 7 ... 22 Next
Advertisements