anton zamov it expert logo   best php scripts for your website

home page latest news web development curriculum vitae scripts contact me

  • C# (Microsoft .NET)
  • JAVA
  • Dynamic HTML
  • PHP & MySQL
  • ASP.NET - C# & VB.NET
  • Perl & CGI
  • C | C++
  • Vector Markup Language
  • SMIL
  • Assembler
  • Databases
  • Wap Development
  • Web site promotion
  • Web Marketing


Blog System v1.5

Real Estate Portal v3.0

Jobs Portal v1.3

Car Portal v2.0

PHP Mall v2.0


WebSiteAdmin.biz



How to join results with UNION in MySQL?

(Free programming example written by Anton Zamov.
Find more free examples on "The ultimate source for developers" )



The UNIONs were introduced in MySQL 4. The unions
are useful if you wish to join the results from more
than one query, but be aware that the number of the returned
columns by each select query should be the same. 
(as well as their type)
 
The very simple example below show you the basics of the UNION
statement
 
SELECT id, name FROM my_table 
UNION 
SELECT id, name FROM my_table;



Still have questions? Ask your question on TechOnlineHelp.com or find more examples on www.netartmedia.net/examples




If this example was useful for you, please support my company and click Like on the button below. Thank you very much!



Jobs Portal, poweful jobs board software

PHP Mall, multi vendors mall website software

Car Portal, php script for auto classifieds websites

NetArt Media, software products and services

Real Estate Portal, web software for real estate portals

Blog System, multi user blog hosting script

PHP Store, powerful e-commerce system written in PHP

Pharmacy System, software for running online pharmacies

C# (Microsoft .NET) | JAVA | Dynamic HTML | PHP & MySQL | Perl & CGI | C | C++ | Vector Markup Language
SMIL | Assembler | Databases | Wap Development | Web site promotion | Web Marketing

Copyright Anton Zamov 1998-2012