Skip to content

Commit

Permalink
Update sql.md
Browse files Browse the repository at this point in the history
  • Loading branch information
companje committed May 24, 2023
1 parent b5c1493 commit 877eb76
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pages/sql.md
@@ -1,3 +1,8 @@
# nodig als je meerdere langere teksten aan elkaar wilt plakken met group_concat. staat standaard op 1024
```php
$db->prepare("SET GLOBAL group_concat_max_len=100000;")->execute();
```

# create slug from title
```sql
CONCAT('story/',LOWER(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(tv.field_cast_video_title, ' ', '-'), ',', ''), '.', ''), ':', ''), '/', '-'),'''',''),'---','-'),'--','-')))) "url_alias",
Expand Down

0 comments on commit 877eb76

Please sign in to comment.