Anvi Jain has Published 629 Articles

How to copy tables or databases from one MySQL server to another MySQL server?

Anvi Jain

Anvi Jain

Updated on 07-Feb-2020 07:01:32

5K+ Views

If we want to copy tables or databases from one MySQL server to another, then use the mysqldump with database name and table name.Run the following command at the source host. This will dump the complete database into dump.txt file.$ mysqldump -u root -p database_name table_name > dump.txt password *****We can copy ... Read More

How Can MySQL CAST handle overflow?

Anvi Jain

Anvi Jain

Updated on 30-Jan-2020 07:13:12

194 Views

MySQL CAST can handle overflow occurs during numerical expression assessment. Suppose if numeric expression evaluation produces overflow then MySQL reflects an error message. Now to handle this overflow we can change that numeric value to UNSIGNED with the help of CAST.For example on adding 1 to BIGINT maximum value, MySQL ... Read More

What is the difference between MySQL NOW() and SYSDATE()?

Anvi Jain

Anvi Jain

Updated on 30-Jan-2020 06:12:14

2K+ Views

MySQL NOW() and SYSDATE() functions returns the current timestamp values. But the output of both of them depends upon the execution time. This creates the big difference between them.NOW() function returns a steady time that indicates the time at which the particular statement began to execute. In contrast, SYSDATE() function ... Read More

HTML5 preload attribute

Anvi Jain

Anvi Jain

Updated on 29-Jan-2020 10:22:10

104 Views

To prevent HTML5 video from loading before playing, use preload attribute. You can try to run the following code:                                        Your browser does not support the video tag.          

Why HTML5 Web Workers are useful?

Anvi Jain

Anvi Jain

Updated on 29-Jan-2020 08:33:46

104 Views

JavaScript was designed to run in a single-threaded environment, meaning multiple scripts cannot run at the same time. Consider a situation where you need to handle UI events, query and process large amounts of API data, and manipulate the DOM.JavaScript will hang your browser in situation where CPU utilization is ... Read More

How can I add one day to DATETIME field in MySQL query?

Anvi Jain

Anvi Jain

Updated on 29-Jan-2020 06:28:01

2K+ Views

With the help of DATE_ADD() function, we can add one day to the DATETIME field of a table.mysql> Select StudentName, RegDate, Date_ADD(RegDate, INTERVAL +1 day) AS 'NEXT DAY'        from testing where StudentName = 'gaurav'; +-------------+---------------------+---------------------+ | StudentName | RegDate             | ... Read More

How can I store ‘0000-00-00’ as a date in MySQL?

Anvi Jain

Anvi Jain

Updated on 28-Jan-2020 10:31:35

1K+ Views

For storing the date like ‘0000-00-00’ in a column of MySQL table, we must have to set the SQL mode to ‘allow_invalid_date’. Following example will demonstrate it −mysql> SET sql_mode = 'allow_invalid_dates'; Query OK, 0 rows affected, 1 warning (0.03 sec) mysql> Create table test_date(date_order date); Query OK, 0 ... Read More

HTML5 meta name = “viewport” doesn't work as expected

Anvi Jain

Anvi Jain

Updated on 28-Jan-2020 10:23:26

641 Views

To solve the issue for HTML5 meta viewport, you can any of the following fix:You can also try this:Let us say you have a site width of 100px, then it won’t display the whole page, withinitial-scale = 1

Creating content with HTML5 Canvas much more complicated than authoring with Flash

Anvi Jain

Anvi Jain

Updated on 28-Jan-2020 07:44:40

98 Views

Flash provides amazing GUI and lots of visual features for animations. It allows the user build everything inside a particular platform without a full integration into the browser wrapped inside the browser with the main scopes that are multimedia and other kinds of animation.HTML5 element gives you an easy ... Read More

How to format JavaScript date into yyyy-mm-dd format?

Anvi Jain

Anvi Jain

Updated on 16-Jan-2020 06:21:02

3K+ Views

To format a JavaScript date into “yyyy-mm-dd” format, use the toISOString() method. It converts using ISO standard i.e.YYYY-MM-DDTHH:mm:ss.sssExampleYou can try to run the following code to format a date. Live Demo           JavaScript Dates                 ... Read More

Advertisements