Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 12963

Friend's Query Not Working

$
0
0

I'm trying to create a database for a game I play and a friend provided a table query for me to use, but MSSMS sees it as broken. I personally know very little about sql servers and would appreciate help with fixing this script.

CREATE TABLE IF NOT EXISTS `smachivement_players` (
  `id` int(11) NOT NULL,
  `points` int(11) NOT NULL,
  `player` varchar(50) NOT NULL,
  `achievements` text NOT NULL
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=1;

ALTER TABLE `smachivement_players`
  ADD PRIMARY KEY (`id`);

ALTER TABLE `smachivement_players`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;

Again, this is for a game but is quite necessary for what I plan to log here.

Thank you for your time.


Viewing all articles
Browse latest Browse all 12963

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>