• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Database: Two columns as primary key

lozina

Lifer
I've got a situation here where I need to have a unique constraint which works on two columns but one of the columns might be null... I know it doesnt work this way though, if its part of primary key it must also be not null, right?

so is there any clever workaround for this?

I guess one cheasy thing is to give column B a default of some stupid value for me to indicate it is empty but I hate that kinda hack.

 
Back
Top