/    Sign up×
Community /Pin to ProfileBookmark

php : sql table COMMIT perrmanent ?

in php, if i connect to a sql database, and say i do an INSERT, but i do not commit, will that entry be added to the database or not?
I know commit makes it permanent, but i was wondering if i dont COMMIT it will it still appear in hte database table ?

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@AdamGundryOct 03.2004 — It may depend on the database, but normally if you do not specifically start a transaction (with BEGIN or similar) then the data will be automatically committed and visible to other connections. [url=http://www.databasejournal.com/features/mysql/article.php/3382171]This article[/url] explains the situation for MySQL.

Adam
×

Success!

Help @paperbox005 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...