Articles on Trending Technologies

Technical articles with clear explanations and examples

Apple iOS Architecture

Ricky Barnes
Ricky Barnes
Updated on 22-Jun-2020 12K+ Views

The iOS is the operating system created by Apple Inc. for mobile devices. The iOS is used in many of the mobile devices for apple such as iPhone, iPod, iPad etc. The iOS is used a lot and only lags behind Android in terms of popularity.The iOS architecture is layered. It contains an intermediate layer between the applications and the hardware so they do not communicate directly. The lower layers in iOS provide the basic services and the higher layers provide the user interface and sophisticated graphics.The layered architecture of iOS is given as follows −Layers in iOS ArchitectureThe different ...

Read More

How can we get the total number of rows affected by MySQL query?

Prabhas
Prabhas
Updated on 22-Jun-2020 4K+ Views

MySQL ROW_COUNT() can be used to get the total number of rows affected by MySQL query. To illustrate it we are creating a procedure with the help of which we can insert records in a table and it will show us how many rows have been affected.Examplemysql> Delimiter // mysql> CREATE PROCEDURE `query`.`row_cnt` (IN command VarChar(60000))     -> BEGIN     ->    SET @query = command;     ->    PREPARE stmt FROM @query;     ->    EXECUTE stmt;     ->    SELECT ROW_COUNT() AS 'Affected rows';     -> END // Query OK, 0 rows ...

Read More

How can we use MySQL REPLACE statement to prevent of insertion of duplicate data?

varun
varun
Updated on 22-Jun-2020 497 Views

We can use the REPLACE statement while inserting the data to prevent the insertion of duplicate data. If we will use the REPLACE command rather than the INSERT command then if the record is new, it is inserted just as with INSERT else if it is a duplicate, the new record replaces the old one.SyntaxREPLACE INTO table_name(…)Here,  table_name is the name of the table in which we want to insert the values.ExampleIn this example we will insert the data with the help of REPLACE statement as follows −mysql> REPLACE INTO person_tbl (last_name, first_name)     -> VALUES( 'Ajay', 'Kumar'); Query OK, ...

Read More

Which PHP function is used to disconnect from MySQL database connection?

Daniol Thomas
Daniol Thomas
Updated on 22-Jun-2020 329 Views

PHP provides us mysql_close() function with the help of which we can disconnect from the MySQL database anytime. This function takes a single parameter, which is a connection returned by the mysql_connect() function. Its syntax is as follows −Syntaxbool mysql_close ( resource $link_identifier );Here, if a resource is not specified, then the last opened database is closed. This function returns true if it closes the connection successfully otherwise it returns false.

Read More

Write an example to establish MySQL database connection using PHP script?

Krantik Chavan
Krantik Chavan
Updated on 22-Jun-2020 202 Views

We can use following PHP script to make a MySQL database connection having user ‘guest’ and password ‘guest123’.           Connecting MySQL Server                  

Read More

Which PHP function is used to delete an existing database?

vanithasree
vanithasree
Updated on 22-Jun-2020 173 Views

PHP uses a mysql_query function to delete a MySQL database. This function takes two parameters and returns TRUE on success or FALSE on failure. Its syntax is as follows −Syntaxbool mysql_query( sql, connection );Followings are the parameters used in this function −Sr. No.Parameter & Description1RequiredSQL query to delete a MySQL database2Optionalif not specified, then the last opened connection by mysql_connect will be used.

Read More

File Permissions in C#

George John
George John
Updated on 22-Jun-2020 3K+ Views

For File Permission in C#, use the FileIOPermission Class. It controls the ability to access files and folders.The following are the properties of File Permissions class −Sr.No.Methods & Description1AllFilesGets or sets the permitted access to all files.2AllLocalFilesGets or sets the permitted access to all local files.The following are the methods of File Permission class −Sr.No.Methods & Description1AddPathList(FileIOPermissionAccess, String)This method adds access for the specified file or directory to the existing state of the permission2Copy()This method creates and returns an identical copy of the current permission.3GetType()The GetType() method gets the type of the current instance.4ToXml()Creates an XML encoding of the permission ...

Read More

What are the different privileges required for using views?

Lakshmi Srinivas
Lakshmi Srinivas
Updated on 22-Jun-2020 214 Views

Following privileges are required for a different kind of CREATE, REPLACE, DROP, ACCESS, UPDATE etc. of usage of views − CREATE VIEW Privilege − CREATE VIEW privilege is required to create a view. Along with this we must have sufficient privileges, like SELECT, INSERT or UPDATE, for accessing the tables to which the view definition refers. DROP VIEW Privilege − We require DROP VIEW privileges for using OR REPLACE clause, DROP VIEW statement and also for using ALTER VIEW statement. SELECT Privilege − We must have SELECT privileges for selecting from a view. INSERT, DELETE or UPDATE Privileges − Actually for an updateable view ...

Read More

Major Activities of an Operating System with Regard to Process Management

David Meador
David Meador
Updated on 22-Jun-2020 7K+ Views

A process is an active program i.e a program that is under execution. It contains the program code, program counter, process stack, registers etc. Process Management deals with processes and the various mechanisms to handle them.The various activities that the operating system performs with regard to process management are mainly process scheduling and context switching. Details about these are given as follows −Process SchedulingThere are many scheduling queues that are used to handle processes. When the processes enter the system, they are put into the job queue. The processes that are ready to execute in the main memory are kept ...

Read More

MS-DOS Layered Structure

Ricky Barnes
Ricky Barnes
Updated on 22-Jun-2020 7K+ Views

MS-DOS is an operating system created for personal computers. It was developed by Microsoft. It is a classic example of an operating system with a layered structure. MS-DOS operating system is split into various layers and each of the layers have different functionalities.Layering provides a distinct advantage in the MS-DOS operating system because all the layers can be defined separately and interact with each other as required. Also, it is easier to create, maintain and update the system if it is done in the form of layers. Change in one layer specification does not affect the rest of the layers. ...

Read More
Showing 48851–48860 of 61,248 articles
Advertisements