Jump to content

Some Questions.....


muthuprince

Recommended Posts

hi all, I have some interview questions. Anyone knows answer please explain me...1. Whats the difference between MYISAM and INNODB ?2. Whats the difference between $_GET and $_REQUEST ?3. how to use mod_rewrite option in mysql ?4. Explain MYISSAM,ISAM,MERGE,HEAP,INNODB,PDB (These are mysql table data types.) ? :)

Link to comment
Share on other sites

http://www.developer.com/db/print.php/2235521http://www.php.net/manual/en/reserved.vari...d.variables.gethttp://www.php.net/manual/en/reserved.vari...riables.requestAs far as I know, mod_rewrite doesn't have anything to do with MySQL. Google for mod_rewrite to see what it does, it is a module for Apache.
Link to comment
Share on other sites

InnoDB is a storage engine for MySQL, included as standard in all current binaries distributed by MySQL AB. Its main enhancement over other storage engines available for use with MySQL is ACID-compliant transaction support, similar to PostgreSQL.InnoDB became a product of Oracle Corporation after their acquisition of Innobase Oy.[1] The software is dual licensed. It is distributed under the GNU General Public License, but can also be licensed to parties wishing to combine InnoDB in proprietary software.[2]MyISAM is the usual alternative engine and the following properties are some which distinguish the two:InnoDB recovers from a crash or other unexpected shutdown by replaying its logs. MyISAM must fully scan and repair or rebuild any indexes or possibly tables which had been updated but not fully flushed to disk. Since the InnoDB approach is approximately fixed time while the MyISAM time grows with the size of the data files, InnoDB offers greater perceived availability and reliability as database sizes grow. MyISAM relies on the operating system for caching reads and writes to the data rows while InnoDB does this within the engine itself, combining the row caches with the index caches. Dirty (changed) database pages are not immediately sent to the operating system to be written by InnoDB, which can make it substantially faster than MyISAM in some situations. InnoDB stores data rows physically in primary key order while MyISAM typically stores them mostly in the order in which they are added. This corresponds to the MS SQL Server feature of “Clustered Indexes” and the Oracle feature known as "index cluster tables." When the primary key is selected to match the needs of common queries this can give a substantial performance benefit. For example, customer bank records might be grouped by customer in InnoDB but by transaction date with MyISAM, so InnoDB would likely require fewer disk seeks and less RAM to retrieve and cache a customer account history. On the other hand, inserting data in orders that differ substantially from primary key (PK) order will presumably require that InnoDB do a lot of reordering of data in order to get it into PK order. This places InnoDB at a slight disadvantage in that it does not permit insertion order based table structuring. InnoDB currently does not provide the compression and terse row formats provided by MyISAM, so both the disk and cache RAM required may be larger. A lower overhead format is available for MySQL 5.0, reducing overhead by about 20% and use of page compression is planned for a future version. When operating in fully ACID-compliant modes, InnoDB must do a flush to disk at least once per transaction, though it will combine flushes for inserts from multiple connections. For typical hard drives or arrays, this will impose a limit of about 200 update transactions per second. If you require higher transaction rates, disk controllers with write caching and battery backup will be required in order to maintain transactional integrity. InnoDB also offers several modes which reduce this effect, naturally leading to a loss of transactional integrity. MyISAM has none of this overhead because it does not need to support transactions. $_GET["var"] is for form with method=get (unsecure... variable in queryString(adressBar))$_POST["var"] is for form with method=post (secure)$_REQUEST["var"] is for the 2 modes, it get the variable of method=post and method=get .. (unsecure because you can put variable in queryString (adressBar))hope U understood

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...