Nancy Den has Published 290 Articles

How can I use the arithmetic operators (+,-,*,/) with unit values of INTERVAL keyword in MySQL?

Nancy Den

Nancy Den

Updated on 20-Jun-2020 06:24:28

209 Views

We can use arithmetic operators (+, -, *, /) with the unit values of INTERVAL keyword as follows −Use of Addition (+)mysql> Select date('2017-10-22' + INTERVAL 2+2 Year) AS 'Date After (2+2)Years'; +------------------------+ | Date After (2+2) Years | +------------------------+ | 2021-10-22             | +------------------------+ ... Read More

What is the difference between MySQL DATETIME and TIMESTAMP data type?

Nancy Den

Nancy Den

Updated on 19-Jun-2020 13:33:54

11K+ Views

Both the data types store data in “YYYY-MM-DD HH:MM:SS” format and include date as well as time. In spite of these similarities they are having the following differences −Range − Datetime data type supports a date along with time in the range between 1000-01-01 00:00:00 and 9999-12-31 23:59:59. But timestamp ... Read More

How to call a function in JavaScript?

Nancy Den

Nancy Den

Updated on 19-Jun-2020 11:24:12

1K+ Views

JavaScript allows us to write our own functions as well. To invoke a function somewhere later in the script, you would simply need to write the name of that function.ExampleYou can try to run the following code to learn how to call a function in JavaScript −       ... Read More

How to get a number value of a string in Javascript?

Nancy Den

Nancy Den

Updated on 17-Jun-2020 06:24:14

530 Views

To get an integer in the string “abcde 30”, use the following regex in JavaScript, else it will return NaN. With that, use parseInt() to get the numbers with regex under String match() method −ExampleLive Demo                    var myStr = "abcdef 30";          var num = parseInt(myStr.match(/\d+/))          alert(num);          

How to show image in alert box using JavaScript?

Nancy Den

Nancy Den

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

2K+ Views

To show an image in alert box, try to run the following code. Here, an alert image is added to the custom alert box −ExampleLive Demo                                function functionAlert(msg, myYes) {   ... Read More

What is the maximum size of HTTP header values?

Nancy Den

Nancy Den

Updated on 16-Jun-2020 12:05:15

12K+ Views

Most web servers have their own set of size limits on HTTP request headers. The HTTP Header values are restricted by server implementations. The following are the limits of some of the most popular web servers −Web ServerSize LimitApache8KNginx4K-8KIIS8K-16KTomcat8K – 48KIf the header size exceeds the above limit, the server ... Read More

Define the style for the body of the modal with Bootstrap

Nancy Den

Nancy Den

Updated on 15-Jun-2020 07:04:51

243 Views

Use the .modal class to define the style for the body of the modal.You can try to run the following code to implement the .modal class −ExampleLive Demo           Bootstrap Example                       ... Read More

How to use Bootstrap Tooltip Plugins

Nancy Den

Nancy Den

Updated on 15-Jun-2020 07:02:18

134 Views

Tooltips are useful when you need to describe a link. The plugin was inspired by jQuery.tipsy plugin written by Jason Frame. Tooltips have since been updated to work without images, animate with a CSS animation, and data-attributes for local title storage.The tooltip plugin generates content and markup on demand, and ... Read More

What is unsigned Right Shift Operator (>>>) in JavaScript?

Nancy Den

Nancy Den

Updated on 13-Jun-2020 07:41:03

530 Views

This operator is just like the >>operator, except that the bits shifted in on the left are always zero i.e. xeroes are filled in from the left.ExampleYou can try to run the following code to learn how to work with unsigned right shift operator −           ... Read More

Increase the font size of a paragraph with Bootstrap

Nancy Den

Nancy Den

Updated on 12-Jun-2020 22:30:07

1K+ Views

Use the .lead class in Bootstrap to increase the font size of a paragraph.You can try to run the following code to implement lead class −ExampleLive Demo           Bootstrap Example                                          Football          FIFA          The 2018 FIFA World Cup is the 21st FIFA World Cup.          FIFA, 2018 is going on in Russia.          

Previous 1 ... 7 8 9 10 11 ... 29 Next
Advertisements