6 votes

Fortnightly Programming Q&A Thread

General Programming Q&A thread! Ask any questions about programming, answer the questions of other users, or post suggestions for future threads.

Don't forget to format your code using the triple backticks or tildes:

Here is my schema:

```sql
CREATE TABLE article_to_warehouse (
  article_id   INTEGER
, warehouse_id INTEGER
)
;
```

How do I add a `UNIQUE` constraint?

1 comment

  1. xnaas
    Link
    I wrote the most important plugin of all-time for my IRC server's chatbot. from sopel import plugin, formatting @plugin.search("ya('|’)ll") def yall(bot, trigger): bot.reply("It's {}, you fucking...

    I wrote the most important plugin of all-time for my IRC server's chatbot.

    from sopel import plugin, formatting
    
    
    @plugin.search("ya('|’)ll")
    def yall(bot, trigger):
        bot.reply("It's {}, you fucking moron.".format(formatting.bold("y'all")))
    

    A missing apostrophe is ok, I understand the laziness, but a misplaced apostrophe is just unacceptable.

    5 votes