Skip to main content

Search

Items tagged with: SQL


Me looking for a job in 2012, bright and bushy tailed: I'd love to work on a video game!

Me looking for a job in 2026, ragged and teary-eyed: Please, anything but AI!

Oh yeah, I'm looking for a new position, either remote or in New York City if the rest of the team would also be in the same office. I'm a lead software engineer by title but I'm also open to technical management. I'm knowledgeable in many web technologies including but not limited to: #PHP, #TypeScript, #Accessibility, #AWS, #Kubernetes, #SQL and #NoSQL.

I work best in medium to larger structures where responsibilities are well-separated, and middleware has been my mainstay for the past decade. I will not use AI assistants.

#FediHire


I'm going to throw this out there:

I'm looking for a #webdev internship for 6mos to complete my bachelor's here in France - this can be remote, I mainly hope for kindness.

I've worked with #php #Laravel #WordPress #angular #sql & more - I'm very open 😀


Question for the #MySQL / #MariaDB buffs, I have three tables defined thus:
CREATE TABLE IF NOT EXISTS `user` (
	`uid` mediumint unsigned NOT NULL auto_increment COMMENT 'sequential ID',
	...
	 PRIMARY KEY(`uid`)
);
CREATE TABLE IF NOT EXISTS `gserver` (
	`id` int unsigned NOT NULL auto_increment COMMENT 'sequential ID',
	...
	 PRIMARY KEY(`id`)
);

CREATE TABLE IF NOT EXISTS `user-gserver` (
	`uid` mediumint unsigned NOT NULL DEFAULT 0 COMMENT 'Owner User id',
	`gsid` mediumint unsigned NOT NULL DEFAULT 0 COMMENT 'Gserver id',
	...
	PRIMARY KEY(`uid`,`gsid`),
	FOREIGN KEY (`uid`) REFERENCES `user` (`uid`) ON UPDATE RESTRICT ON DELETE CASCADE,
	FOREIGN KEY (`gsid`) REFERENCES `gserver` (`id`) ON UPDATE RESTRICT ON DELETE CASCADE
);

Running the last query triggers the error Foreign key constraint is incorrectly formed. Is there no way to reference multiple tables in foreign keys out of a compound primary key?

#SQL #Database #DBA