基于employee_id的PDF

发布于 2024-09-08 06:00:36 字数 98 浏览 2 评论 0原文

需要帮助!!! :(

我必须完成项目中的一项任务,例如员工表包含员工 ID、用户名和密码列...

我如何根据员工 ID 打印用户名和密码?请帮助我:(

NEED HELP!!!! :(

I have to finish a task in our project, lets say for example employees table has columns employee_id, username and password...

How will i print the username and password based on employee_id? please help me :(

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

情深已缘浅 2024-09-15 06:00:36

这是避免意外输入密码并使您的公司难堪的最佳方法之一。

永远不要以纯文本形式存储密码!

当然永远不要打印出来。

您应该销毁您的密码列并将其替换为 SHA-512 哈希值。


回答这个问题:

SELECT Username FROM employee WHERE emplyee_id = @id

This is one of the best ways to accidentally passwords and embarrass your company.

Never store passwords in plain text!

and certainly never print them out.

You should destroy your password column and replace it with an SHA-512 hash.


To answer the question:

SELECT Username FROM employee WHERE emplyee_id = @id
旧时模样 2024-09-15 06:00:36

你用什么? T-SQL?

首先,切勿以纯文本形式存储/打印密码。但是..

SELECT username, password FROM table ORDER BY employee_id

或者,如果您想单独为每个员工选择用户名,那么

SELECT username, password FROM table WHERE employee_id = @id

其中 @id 是您想要了解其信息的员工的员工 ID 号。

What are you using? T-SQL?

First of all NEVER store/print passwords in plain text. But..

SELECT username, password FROM table ORDER BY employee_id

Or if you want to select the username for each employee individually then

SELECT username, password FROM table WHERE employee_id = @id

Where @id is the employee id number of the employee you want the information about.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文