PHP Classes

File: Sql

Recommend this page to a friend!
  Classes of vijay   Binary Tree Representation   Sql   Download  
File: Sql
Role: Auxiliary data
Content type: text/plain
Description: table Structure
Class: Binary Tree Representation
Display the nodes of a tree in a MySQL database
Author: By
Last change:
Date: 14 years ago
Size: 1,402 bytes
 

Contents

Class file image Download
/* SQLyog Ultimate - MySQL GUI v8.22 MySQL - 5.1.36-community-log : Database - binary ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; CREATE DATABASE /*!32312 IF NOT EXISTS*/`binary` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `binary`; /*Table structure for table `binary_tbl` */ DROP TABLE IF EXISTS `binary_tbl`; CREATE TABLE `binary_tbl` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(10) DEFAULT NULL, `supermember` int(11) NOT NULL, `membercount` int(1) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=14 DEFAULT CHARSET=latin1; /*Data for the table `binary_tbl` */ insert into `binary_tbl`(`id`,`name`,`supermember`,`membercount`) values (1,'A',0,2),(2,'B',1,2),(3,'C',1,2),(4,'D',2,2),(5,'E',3,0),(7,'G',3,2),(9,'H',4,0),(10,'I',4,0),(11,'J',7,0); /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;