Arjun Thakur has Published 1176 Articles

How to get a list of MySQL user accounts?

Arjun Thakur

Arjun Thakur

Updated on 30-Jul-2019 22:30:23

102 Views

To get the list of MySQL user accounts, we can use “SELECT USER”. The following is the query to display the list. SELECT User FROM mysql.user; Here is the output. +------------------+ | User | +------------------+ ... Read More

Python program to find common elements in three sorted arrays?

Arjun Thakur

Arjun Thakur

Updated on 30-Jul-2019 22:30:23

536 Views

Here first we create 3 array which are user input unsorted array, then we sort all 3 unsorted arrays. The size of the arrays are n1, n2, n3.starting address of every array is 0.i=0, j=0, k=0, then traverse all the elements of three array and check the element of ... Read More

cal_days_in_month() function in PHP

Arjun Thakur

Arjun Thakur

Updated on 30-Jul-2019 22:30:23

136 Views

The cal_days_in_month() function returns the number of days in a month for a specified year and calendar. Syntax cal_days_in_month(calendar, month, year); Parameters calendar − The calendar to be used. month − The month to be specified. year − The year to be specified. Return The cal_days_in_month() ... Read More

Remove Primary Key in MySQL?

Arjun Thakur

Arjun Thakur

Updated on 30-Jul-2019 22:30:23

5K+ Views

To remove primary key in MySQL, use tje drop primary key command. To understand the concept, let us create a table with column as primary key. mysql> create table PrimaryKeyDemo -> ( -> id int not null, -> Primary key(id) ... Read More

Differences between C and C#

Arjun Thakur

Arjun Thakur

Updated on 30-Jul-2019 22:30:23

2K+ Views

C is a general-purpose, high-level language that was originally developed by Dennis M. Ritchie to develop the UNIX operating system at Bell Labs. C was originally first implemented on the DEC PDP-11 computer in 1972. C# is a simple, modern, general-purpose, object-oriented programming language developed by Microsoft within its .NET ... Read More

MySQL trigger to insert row into another table?

Arjun Thakur

Arjun Thakur

Updated on 30-Jul-2019 22:30:23

12K+ Views

Let us first create a table. The CREATE command is used to create a table. mysql> create table Table1 -> ( -> id int, -> name varchar(100) -> ); Query OK, 0 rows affected (0.62 sec) ... Read More

unixtojd() function in PHP

Arjun Thakur

Arjun Thakur

Updated on 30-Jul-2019 22:30:23

22 Views

The unixtojd() function converts a Unix timestamp to a Julian day count. It returns the the Julian Day for a Unix timestamp (seconds since 1.1.1970), or for the current day if no timestamp is given. Syntax unixtojd(timestamp) Parameters timestamp − Unix timestamp to convert. Return ... Read More

How to save MySQL query output to excel or .txt file?

Arjun Thakur

Arjun Thakur

Updated on 30-Jul-2019 22:30:23

3K+ Views

To save MySQL query output into a text file, we can use the OUTFILE command. Let us first create a table. mysql> create table SaveintoTextFile -> ( -> id int, -> name varchar(100) -> ); Query OK, ... Read More

Comparison between C# and .NET Framework

Arjun Thakur

Arjun Thakur

Updated on 30-Jul-2019 22:30:23

415 Views

C# is a programming language and .NET framework is a software framework developed by Microsoft. .NET has Common Language Runtime (CLR), which is a virtual component of .NET framework. And framework is a large class of library. .NET not only has C#, but through it, you can work with VB, ... Read More

Python program to find missing and additional values in two lists?

Arjun Thakur

Arjun Thakur

Updated on 30-Jul-2019 22:30:23

1K+ Views

In set theory, the complement of a set A refers to elements not in A. the relative complement of A with respect to a set B, also termed the difference of Sets A and B. We just apply this principle here. Python has difference function. Algorithm Step 1 : ... Read More

Advertisements