Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Database Management System Project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Bouchaira Neirouz
Database Management System Project
Commits
64cd8ade
Commit
64cd8ade
authored
7 months ago
by
Bouchaira Neirouz
Browse files
Options
Downloads
Patches
Plain Diff
Hello
parent
1e706c8e
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
donnees/Question 7.ipynb
+50
-0
50 additions, 0 deletions
donnees/Question 7.ipynb
donnees/company.db
+0
-0
0 additions, 0 deletions
donnees/company.db
with
50 additions
and
0 deletions
donnees/Question 7.ipynb
0 → 100644
+
50
−
0
View file @
64cd8ade
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Connected to company.db\n"
]
}
],
"source": [
"import sqlite3\n",
"\n",
"# Connect to the database\n",
"conn = sqlite3.connect('company.db')\n",
"\n",
"# Create a cursor object\n",
"cursor = conn.cursor()\n",
"\n",
"print(\"Connected to company.db\")"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.13.0"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
%% Cell type:code id: tags:
```
python
import
sqlite3
# Connect to the database
conn
=
sqlite3
.
connect
(
'
company.db
'
)
# Create a cursor object
cursor
=
conn
.
cursor
()
print
(
"
Connected to company.db
"
)
```
%% Output
Connected to company.db
This diff is collapsed.
Click to expand it.
donnees/company.db
+
0
−
0
View file @
64cd8ade
No preview for this file type
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment