Akshaya Akki has Published 49 Articles

How can we pass an empty string as a parameter to BIT_LENGTH() function and what would be returned by MySQL?

Akshaya Akki

Akshaya Akki

Updated on 20-Jun-2020 08:16:21

182 Views

Whenever we want to pass an empty string as a parameter to BIT_LENGTH() function then we must have to pass blank quotes (even without any space). It cannot pass without quotes because MySQL then resembles it as the function without any argument and returns an error. But, when we pass ... Read More

How can we delete a single row from a MySQL table?

Akshaya Akki

Akshaya Akki

Updated on 20-Jun-2020 07:31:48

279 Views

We can use DELETE statement along with a WHERE clause, which identifies that particular row, to delete a row from MySQL table.Examplemysql> Select * from names; +------+-----------+ | id   | name      | +------+-----------+ | 1    | Rahul     | | 2    | Gaurav   ... Read More

What is MySQL DELETE command used for?

Akshaya Akki

Akshaya Akki

Updated on 20-Jun-2020 06:01:49

111 Views

MySQL DELETE command is used to delete the row/s from a table. It is used with WHERE clause.SyntaxDELETE From Table_name WHERE Condition;ExampleIn the example below, we have deleted the rows from table ‘employee’ where id >=100.mysql> select * from employee; +------+--------+ | Id   | name   | +------+--------+ | ... Read More

How can we emulate CHECK CONSTRAINT by using MySQL GENERATED COLUMN?

Akshaya Akki

Akshaya Akki

Updated on 19-Jun-2020 13:39:16

73 Views

As we know that MySQL supports foreign key for referential integrity but it does not support CHECK constraint. But we can emulate them by using triggers. It can be illustrated with the help of an example given below −ExampleSuppose we have a table named ‘car’ which can have the fix ... Read More

Java program to find the percentage of uppercase, lowercase, digits and special characters in a String

Akshaya Akki

Akshaya Akki

Updated on 18-Jun-2020 07:46:00

881 Views

Convert the given string into an array of characters for each character of the array verify whether it is upper case, lower case, digit or, any other character using isUpperCase(), isLowerCase(), isDigit() method of the Character class.ExampleLive Demopublic class Sample2 {    public static void main(String args[]) {     ... Read More

What is the difference between getter and setter in JavaScript?

Akshaya Akki

Akshaya Akki

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

710 Views

GetterWhen a property is accessed, the value gets through calling a function implicitly. The get keyword is used in JavaScript. An identifier, either a number or a string is allowed for set.SetterWhen a property is set, it implicitly calls a function and the value is passed as an argument. With ... Read More

What is a constructor to create String object in JavaScript?

Akshaya Akki

Akshaya Akki

Updated on 15-Jun-2020 07:09:25

86 Views

To create a String object in JavaScript, use string.constructor. A constructor returns a reference to the string function that created the instance's prototype.ExampleYou can try to run the following code to create a String object with the constructor −Live Demo           JavaScript String constructor Method   ... Read More

How to create a big font text using JavaScript?

Akshaya Akki

Akshaya Akki

Updated on 15-Jun-2020 06:55:29

657 Views

To create a big font text, use the JavaScript big() method. This method causes a string to be displayed in a big font as if it were in a BIG tag.ExampleYou can try to run the following code to create a big font text −Live Demo         ... Read More

How to create a strikethrough text using JavaScript?

Akshaya Akki

Akshaya Akki

Updated on 15-Jun-2020 06:52:04

4K+ Views

To create a strikethrough text with JavaScript, use the strike() method. This method causes a string to be displayed as struck-out text as if it were in a tag.ExampleYou can try to run the following code to create a strikethrough text −Live Demo           JavaScript ... Read More

Why is Java slower than C++ programs?

Akshaya Akki

Akshaya Akki

Updated on 13-Jun-2020 14:02:33

980 Views

Modern Java is quite fast and is comparable to C++ code base but it still takes lot of memory. Slowness of Java programs is primarily because of bad programming practices. But following areas are where Java can be improved.Java libraries are written keeping readability and correctness in mind, not performance.Slow ... Read More

Advertisements