Vrundesha Joshi has Published 345 Articles

How to display the Engine of a MySQL table?

Vrundesha Joshi

Vrundesha Joshi

Updated on 25-Jun-2020 12:30:25

946 Views

To know whether a MySQL table is using MyISAM or InnoDB engine then you can use below syntax.The below syntax can be used for multiple tables −show table status from yourDatabaseName;Here is the syntax that can be used for a specific table i.e. to know the engine of a table ... Read More

CURDATE () vs NOW() in MySQL

Vrundesha Joshi

Vrundesha Joshi

Updated on 25-Jun-2020 11:36:53

2K+ Views

The NOW() function gives current datetime as a timestamp while CURDATE() gives only current date, not time.Now let us work on both the functions with the help of select statement. The query is as follows −The following is a demo of NOW() function −mysql> select NOW();The following is the output ... Read More

How to insert date in single quotes with MySQL date formats?

Vrundesha Joshi

Vrundesha Joshi

Updated on 25-Jun-2020 11:25:58

564 Views

To insert the date with date formats, use the str_to_date() function with date in single quotes. The following is the syntax −insert into yourTableName values(Value1, value2, ......ValueN, str_to_date(‘anyDate’, ’%Y-%m-%d’));Here are the Date Formats in MySQL −FormatDescription%aAbbreviated weekday name (Sun to Sat)%bAbbreviated month name (Jan to Dec)%cNumeric month name (0 to ... Read More

How to skip first 10 results in MySQL?

Vrundesha Joshi

Vrundesha Joshi

Updated on 25-Jun-2020 11:20:27

811 Views

To skip first 10 results, use “limit offset”. The syntax is as follows −select *from yourTableName limit 10 offset lastValue;Let us create a table to understand the above syntax. The following is the query to create a table −mysql> create table SkipFirstTenRecords    −> (       −> StudentId ... Read More

Can a user disable HTML5 sessionStorage?

Vrundesha Joshi

Vrundesha Joshi

Updated on 25-Jun-2020 07:43:47

1K+ Views

Yes, a user can disable HTML5 sessionStorage.It is easy to prevent browsers from accepting localStorage and sessionStorage. Let us see the settings for web browsers −Firefox Type “about config” in the address bar and press. This would show the internal browser settings. Move to dom.storage.enabled“, you need to right-click and ... Read More

How to fire after pressing ENTER in text input with HTML?

Vrundesha Joshi

Vrundesha Joshi

Updated on 25-Jun-2020 07:28:39

307 Views

Use HTML with jQuery to achieve this and fire after pressing ENTER −Example                          $(document).ready(function(){             $('input').bind("enterKey",function(e){                alert("Enter key pressed");             });             $('input').keyup(function(e){                if(e.keyCode == 13)                {                   $(this).trigger("enterKey");                }             });          });                             Press Enter key in the above input text.    

How to preview an image before and after upload in HTML and JavaScript?

Vrundesha Joshi

Vrundesha Joshi

Updated on 25-Jun-2020 07:01:37

2K+ Views

To preview an image before and after upload, you need to try the following code − HTML         The following is the jQuery −function display(input) {    if (input.files && input.files[0]) {       var reader = new FileReader();       reader.onload = function(event) ... Read More

Align flex lines with CSS

Vrundesha Joshi

Vrundesha Joshi

Updated on 24-Jun-2020 15:04:19

316 Views

Use the align-content property to align the flex lines. You can try to run the following code to implement the align-content property:ExampleLive Demo                    .mycontainer {             display: flex;             ... Read More

Usage of CSS align-items property flex-end value

Vrundesha Joshi

Vrundesha Joshi

Updated on 24-Jun-2020 14:59:45

76 Views

Use the align-items property with value flex-end to align flex items on the bottom.You can try to run the following code to implement the flex-end value:ExampleLive Demo                    .mycontainer {             display: flex;       ... Read More

Center Triangle at Bottom of Div in HTML with CSS

Vrundesha Joshi

Vrundesha Joshi

Updated on 24-Jun-2020 14:25:53

628 Views

To set the triangle at the center and at the bottom of div, use the following. You need to set left to 50% −.demo: after {    position: absolute;    border-top: solid 50px #e15915;    border-left: solid 50px transparent;    border-right: solid 50px transparent;    top: 100%;    left: 50%;    margin-left: -50px;    width: 0;    height: 0; }

Advertisements