Ankitha Reddy has Published 69 Articles

How MySQL behaves if I use INTERVAL keyword with an invalid date?

Ankitha Reddy

Ankitha Reddy

Updated on 30-Jul-2019 22:30:21

164 Views

Actually, the behavior of MySQL depends upon the allow_invalid_dates mode. If this mode is enabled then MySQL will accept the invalid date and it would perform the date arithmetic as it performs with a valid date. Otherwise, if this mode is inactive then it will not accept the invalid date ... Read More

How can we export all the data from MySQL table into a text file?

Ankitha Reddy

Ankitha Reddy

Updated on 30-Jul-2019 22:30:21

795 Views

It can be done with the help of SELECT … INTO OUTFILE statement. We are illustrating it with the help of the following example − Example Suppose we are having following data from table ‘Student_info’: mysql> Select * from Student_info; +------+---------+------------+------------+ | id | Name ... Read More

How to set the order of the flexible item, relative to the rest with JavaScript?

Ankitha Reddy

Ankitha Reddy

Updated on 30-Jul-2019 22:30:21

121 Views

To set the order of the flexible item, relative to the rest of JavaScript, use the order property. You can try to run the following code to implement order property − Example Live Demo ... Read More

What is function overloading in JavaScript?

Ankitha Reddy

Ankitha Reddy

Updated on 30-Jul-2019 22:30:21

2K+ Views

JavaScript does not support Function Overloading. The following shows function overloading − function funcONE(x, y) { return x*y; } function funcONE(z) { return z; } The above will not show an error, but you won't get desired results. On calling, // ... Read More

Which event occurs in JavaScript when the dragging of an element begins?

Ankitha Reddy

Ankitha Reddy

Updated on 30-Jul-2019 22:30:21

163 Views

The ondragstart event triggers when dragging of an element begins.You can try to run the following code to learn how to implement ondragstart JavaScript event − Example Live Demo ... Read More

How to use comments to prevent JavaScript Execution?

Ankitha Reddy

Ankitha Reddy

Updated on 30-Jul-2019 22:30:21

296 Views

If you want another code while working in the same code document, then use comments. Comment the previous code and add the alternative code to test it. After the testing completes, uncomment the previous code. In this way, you can test both the codes. While using comments follow the below ... Read More

How to debug obfuscated JavaScript?

Ankitha Reddy

Ankitha Reddy

Updated on 30-Jul-2019 22:30:21

634 Views

To debug obfuscated JavaScript code, you need to use a JavaScript formatter or beautifier. Go to the following link to beautify JavaScript, In the left section, add your obfuscated JavaScript code and click Beautify as shown below, On clicking, you can see Beautified JavaScript code in the right section.

How can I check how much time MySQL query, without printing it on the console, is taking?

Ankitha Reddy

Ankitha Reddy

Updated on 30-Jul-2019 22:30:21

221 Views

To check this we need to have the profiling information which indicates resource usage for the statements executed during the course of the current session. Profiling information can get by SHOW PROFILE and SHOW PROFILES statement. Before running these statements, the profiling session variable must be set to 1 as ... Read More

What is object slicing in C++ or Java?

Ankitha Reddy

Ankitha Reddy

Updated on 30-Jul-2019 22:30:21

3K+ Views

Object slicing is used to describe the situation when you assign an object of a derived class to an instance of a base class. This causes a loss of methods and member variables for the derived class object. This is termed as information being sliced away. For example, class ... Read More

What is the role of Keyboard Event ctrlKey Property in JavaScript?

Ankitha Reddy

Ankitha Reddy

Updated on 30-Jul-2019 22:30:21

166 Views

The ctrlKey property is used to show whether the CTRL key is pressed or not when key event was triggered. You can try to run the following code to learn how to implement a ctrlKey property in JavaScript − Example Live Demo ... Read More

Advertisements