Erster Code für die DB
This commit is contained in:
		
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										35
									
								
								Happy_Bird/HappyBirdDB.sql
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								Happy_Bird/HappyBirdDB.sql
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,35 @@
 | 
			
		||||
-- --------------------------------------------------------
 | 
			
		||||
-- Host:                         127.0.0.1
 | 
			
		||||
-- Server Version:               10.6.5-MariaDB - mariadb.org binary distribution
 | 
			
		||||
-- Server Betriebssystem:        Win64
 | 
			
		||||
-- HeidiSQL Version:             11.3.0.6295
 | 
			
		||||
-- --------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
 | 
			
		||||
/*!40101 SET NAMES utf8 */;
 | 
			
		||||
/*!50503 SET NAMES utf8mb4 */;
 | 
			
		||||
/*!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 */;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
-- Exportiere Datenbank Struktur für happybird
 | 
			
		||||
CREATE DATABASE IF NOT EXISTS `happybird` /*!40100 DEFAULT CHARACTER SET utf8mb3 */;
 | 
			
		||||
USE `happybird`;
 | 
			
		||||
 | 
			
		||||
-- Exportiere Struktur von Tabelle happybird.happybirddb
 | 
			
		||||
CREATE TABLE IF NOT EXISTS `happybirddb` (
 | 
			
		||||
  `spielid` int(11) NOT NULL AUTO_INCREMENT,
 | 
			
		||||
  `name` varchar(40) DEFAULT NULL,
 | 
			
		||||
  `punkte` int(11) DEFAULT NULL,
 | 
			
		||||
  `highscore` tinyint(1) DEFAULT NULL,
 | 
			
		||||
  `kuerzel` varchar(10) DEFAULT NULL,
 | 
			
		||||
  PRIMARY KEY (`spielid`)
 | 
			
		||||
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb3;
 | 
			
		||||
 | 
			
		||||
-- Daten Export vom Benutzer nicht ausgewählt
 | 
			
		||||
 | 
			
		||||
/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
 | 
			
		||||
/*!40014 SET FOREIGN_KEY_CHECKS=IFNULL(@OLD_FOREIGN_KEY_CHECKS, 1) */;
 | 
			
		||||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
 | 
			
		||||
/*!40111 SET SQL_NOTES=IFNULL(@OLD_SQL_NOTES, 1) */;
 | 
			
		||||
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							@@ -1,3 +1,5 @@
 | 
			
		||||
package com.example.happy_bird;
 | 
			
		||||
 | 
			
		||||
import java.beans.Statement;
 | 
			
		||||
import java.sql.*;
 | 
			
		||||
public class MariaDB
 | 
			
		||||
		Reference in New Issue
	
	Block a user