New answers tagged insert
3 votes
Accepted
marklogic : temporal:document-insert fails
The problem is that the fields are not metadata. To create them use admin:database-metadata-field(): let $config := admin:database-add-field($config, xdmp:database(), admin:database-metadata-field(&...
Best practices
0 votes
0 replies
0 views
how to replace a string within a text with the contents of a file once or multiple times
This will only work with GNU sed: printf '\0' >> replacementStringFile sed -z 's/[^\n]\'\''/&\n/;s/@{:a}/\x0/g' file | sed -z '/^/r replacementStringFile' | sed -E 'H;1h;$!d;x;s/(.*)\x0.*\x0/...
Best practices
0 votes
0 replies
0 views
how to replace a string within a text with the contents of a file once or multiple times
The goal is to handle any special chars, including newlines to be inserted. Otherwise the solution is very elegant. Adding ASCII bell to the marker (\a) allows even for multi-line inserts but AIFAK \a ...
Top 50 recent answers are included
Related Tags
insert × 14306mysql × 4271
sql × 3177
php × 2728
sql-server × 1188
database × 1139
c# × 809
python × 794
select × 695
oracle-database × 658
java × 650
sqlite × 600
postgresql × 529
c++ × 503
arrays × 466
triggers × 410
android × 384
list × 308
javascript × 293
vba × 271
pdo × 271
excel × 259
html × 248
string × 245
t-sql × 237