AmitDiwan has Published 10744 Articles

Compare for NULL value and display value 1 for these values in a new MySQL column?

AmitDiwan

AmitDiwan

Updated on 27-Sep-2019 06:29:11

88 Views

For this, use IF() along with IS NULL property. Let us first create a table −mysql> create table DemoTable (    Name varchar(100),    CountryName varchar(100) ); Query OK, 0 rows affected (0.70 sec)Insert some records in the table using insert command −mysql> insert into DemoTable values('Chris', 'US'); Query OK, ... Read More

EnumMap class in Java

AmitDiwan

AmitDiwan

Updated on 26-Sep-2019 13:27:04

190 Views

The java.util.EnumMap class is a specialized Map implementation for use with enum keys. Following are the important points about EnumMap −All of the keys in an enum map must come from a single enum type that is specified, explicitly or implicitly, when the map is created.Enum maps are maintained in the natural ... Read More

Compare two Strings in Java

AmitDiwan

AmitDiwan

Updated on 26-Sep-2019 13:23:44

397 Views

Compare two strings using compareTo() method in Java. The syntax is as follows −int compareTo(Object o)Here, o is the object to be compared.The return value is 0 if the argument is a string lexicographically equal to this string; a value less than 0 if the argument is a string lexicographically ... Read More

HTML KeyboardEvent which Property

AmitDiwan

AmitDiwan

Updated on 26-Sep-2019 12:00:14

85 Views

The HTML KeyboardEvent which property returns the Unicode character code of the key that fires the onkeypress event, onkeydown event or onkeyup event in an HTML document.SyntaxFollowing is the syntax −event.whichLet us see an example of HTML KeyboardEvent which property −Example Live Demo    body {       ... Read More

HTML Navigator javaEnabled() Method

AmitDiwan

AmitDiwan

Updated on 26-Sep-2019 11:57:07

143 Views

The HTML navigator javaEnabled() method returns a boolean value that defines whether the browser has java enable or not.SyntaxFollowing is the syntax −navigator.javaEnabled()Let us see an example of HTML navigator userAgent property −Example Live Demo    body {       color: #000;       height: 100vh;   ... Read More

HTML Navigator userAgent Property

AmitDiwan

AmitDiwan

Updated on 26-Sep-2019 11:52:57

218 Views

The HTML navigator userAgent property returns the value of the user-agent header sent by the browser to the server.SyntaxFollowing is the syntax −navigator.userAgentLet us see an example of HTML navigator userAgent property −Example Live Demo    body {       color: #000;       height: 100vh;   ... Read More

HTML Navigator product Property

AmitDiwan

AmitDiwan

Updated on 26-Sep-2019 11:49:14

114 Views

The HTML navigator product property returns the browser’s engine name.SyntaxFollowing is the syntax −navigator.productLet us see an example of HTML navigator product property −Example Live Demo    body {       color: #000;       height: 100vh;       background: linear-gradient(62deg, #FBAB7E 0%, #F7CE68 100%) no-repeat; ... Read More

HTML Navigator platform Property

AmitDiwan

AmitDiwan

Updated on 26-Sep-2019 11:46:12

128 Views

The HTML navigator platform property returns the browser compiled platform.SyntaxFollowing is the syntax −navigator.platformLet us see an example of HTML navigator platform property −Example Live Demo    body {       color: #000;       height: 100vh;       background: linear-gradient(62deg, #FBAB7E 0%, #F7CE68 100%) no-repeat; ... Read More

HTML Navigator onLine Property

AmitDiwan

AmitDiwan

Updated on 26-Sep-2019 11:43:10

197 Views

The HTML navigator onLine property returns a boolean value that defines whether the browser is online or offline.SyntaxFollowing is the syntax −navigator.onLineLet us see an example of HTML navigator onLine property −Example Live Demo    body {       color: #000;       height: 100vh;     ... Read More

HTML Navigator geolocation Property

AmitDiwan

AmitDiwan

Updated on 26-Sep-2019 11:39:46

134 Views

The HTML navigator geolocation property returns a Geolocation object that can be used to locate the user’s position.SyntaxFollowing is the syntax −navigator.geolocationLet us see an example of HTML navigator geolocation property −Example Live Demo    body {       color: #000;       height: 100vh;     ... Read More

Advertisements