What is the use of FLUSH PRIVILEGES statement in MySQL?

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

7K+ Views

Actually, we need to perform flush-privileges operation to tell the server to reload the grant tables. This can be done by issuing FLUSH PRIVILEGES statement or by executing a mysqladmin flush-privileges or mysqladmin reload command. FLUSH PRIVILEGES is really needed if we modify the grant tables directly using such as INSERT, UPDATE or DELETE, the changes have no effect on privileges checking until we either restart the server or tell it to reload the tables. But, Privileges assigned through GRANT choice don't want FLUSH PRIVILEGES to take effect - MySQL server cannotice these changes and reload the grant tables instantly. ... Read More

How to avoid Java code in jsp page?

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

325 Views

You can use JSTL, JSP Standard Tag Library or EL, Expression Language to avoid scriptlets.

What is string constant pool in Java?

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

993 Views

When you store a String asString str1 = "Hello";directly, then JVM creates a String object with the given value in a separate block of memory known as String constant pool.And whenever we try to create another String asString str2 = "Hello";JVM verifies whether any String object with the same value exists in the String constant pool, if so, instead of creating a new object JVM assigns the reference of the existing object to the new variable.And when we store String asString str = new String("Hello");using the new keyword, a new object with the given value is created irrespective of the ... Read More

Default location for installation of SAP HANA Studio

SAP ABAP Expert
Updated on 30-Jul-2019 22:30:21

811 Views

You can install SAP HANA studio on Linux platform without Root user. In Windows platform, you can perform the installation without administration rights but it will be available only to the user who has installed it.Default Location on Window Platform: C:\Program Files\sap\hdbstudioDefault installation Location under MAC OS: /Applications/sap/hdbstudio (old) or  /Applications/sap/hdbstudio.app (new)Default installation Linux x86 64 bit: /usr/sap/hdbstudio

How can we check that by default MySQL CHAR() function returns a binary string?

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

162 Views

With the help of CHARSET() function, we can check which string is returned by MySQL CHAR() function. Following result set will demonstrate it − mysql> Select CHARSET(CHAR(85)); +-------------------+ | CHARSET(CHAR(85)) | +-------------------+ | binary | +-------------------+ 1 row in set (0.00 sec)

Immutable String in Java

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

832 Views

In Java immutable objects are those whose data can’t be changed or modified (once modified). String class is immutable i.e. once we create a String object its data cannot be modified.

History of C++ language

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

3K+ Views

The C++ programming language has a history going back to 1979, when Bjarne Stroustrup was doing work for his Ph.D. thesis. He began work on "C with Classes", which as the name implies was meant to be a superset of the C language. His goal was to add object-oriented programming into the C language, which was and still is a language well-respected for its portability without sacrificing speed or low-level functionality.His language included classes, basic inheritance, inlining, default function arguments, and strong type checking in addition to all the features of the C language. The first C with Classes compiler ... Read More

What will happen if the MySQL AUTO_INCREMENT column reaches the upper limit of the data type?

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

873 Views

When the AUTO_INCREMENT column reaches the upper limit of data type then the subsequent effort to generate the sequence number fails. That is why it is advised to use a large enough integer data type for the AUTO_INCREMENT column to hold the maximum sequence value required by us. For example, if we will use TINYINT then AUTO_INCREMENT would be able to generate only 127 sequence numbers and in case of UNSIGNED TINYINT, this value can be extended up to 255.

Using TCP/IP ports for accessing SAP HANA database

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

971 Views

To access HANA system on client tools, you need to open different ports to database for these clients. These ports refer to different servers and application service in HANA system.

Why is it not recommended to use the mixture of quoted as well as unquoted values in MySQL IN() function's list?

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

149 Views

Actually, MySQL has different comparison rules for quoted values such as strings and unquoted values such as numbers. On mixing the quoted and unquoted values in IN() function list may lead to the inconsistent result set. For example, we must not write the query with IN() function like below − Select Salary from employee where ID IN(1,’a’,2,3,’c’) Instead of this the better way to write the above query is as follows − Select Salary from employee where ID IN(‘1’,’a’,’2’,’3’,’c’)

Advertisements