Oracle
select * from (select * from customer order by age) where rownum < :nMysql
select * from customer order by age limit :nMS Sql
select top :n * from customer order by age
select * from (select * from customer order by age) where rownum < :nMysql
select * from customer order by age limit :nMS Sql
select top :n * from customer order by age
MERGE INTO image iHowever, it only does update and not insert. I consulted oracle DBA and here is his answer:
USING (select id, url from offer_image
WHERE id = :id and url = :url) ii
ON (ii.id = i.id AND ii.url = i.url)
WHEN MATCHED THEN
UPDATE SET
title = :title
WHEN NOT MATCHED THEN
INSERT (i.id, i.url, i.title)
VALUES (:id, :url, :title)
"Your source always needs to return a non-empty for the merge to work. In this case your source is returning 0 rows."Then I came up the following merge statement:
MERGE INTO image iNote that Oracle table DUAL is a special one row one column table. Here is a good explanation about DUAL
USING (select 1 from dual) ii
ON (i.id = :id AND i.url = :url)
WHEN MATCHED THEN
UPDATE SET
title = :title
WHEN NOT MATCHED THEN
INSERT (i.id, i.url, i.title)
VALUES (:id, :url, :title)
git checkout -b new_branch existing_branchPush a newly created branch
git push -u origin new_branch_name-u will make your branch tracked
git branch -D branch_nameDelete a remote branch
git push origin :remote_branch_nameDelete a local tag
git tag -d tag_nameDelete a remote tag
git push origin :refs/tags/tag_nameRemove the references to the deleted remote branches
git remote prune originDelete last commit (not pushed yet)
git reset --hard HEAD~1List all key/value pairs for git config
git config -lGet a value for a key in git config (for example, get git repository url):
git config --get remote.origin.urlShow all file names changed in a single commit:
git show --pretty="format:" --name-only commit_hashCherry Pick
git cherry-pick commit-id-from-other-branch